vue-selectize icon indicating copy to clipboard operation
vue-selectize copied to clipboard

Add Nuxt.js module

Open isneezy opened this issue 5 years ago • 0 comments

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

// 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

// 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"]
};

isneezy avatar Sep 04 '20 09:09 isneezy