isneezy / isneezy/vue-selectize
Add Nuxt.js module
- Dominant language
- Vue
- Stars
- 74
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
**Is your feature request related to a problem? Please describe.**
There are lots of steps involved to integrate with Nuxt.js, we want to make it easier and reduce the effort and time required to make this component/library work with Nuxt.js
**Describe the solution you'd like**
Create a Nuxt.js module that will register the component and also inject all the CSS files required for it to work.
**Describe alternatives you've considered**
Creating a Nuxt.js plugin
```js
// plugins/vue-selectize.js
import Vue from "vue";
import VueSelectize from "@isneezy/vue-selectize";
Vue.component("v-selectize", VueSelectize);
```
Register the plugin and the selectize.js css files
```js
// nuxt.config.js
export default {
head: {
link: [
{
rel: "stylesheet",
type: "text/css",
href:
"https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.12.6/css/selectize.bootstrap3.min.css"
}
]
},
plugins: ["~/plugins/vue-selectize"]
};
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.