Sleep

Vue. js plugin that allows you to pack CSS along with your components

.vue-css.The Vue.js plugin developed through @nxtchg, vue-css is made for keeping appropriate CSS along with.vue elements, permitting you to bundle CSS documents along with your components.Vue parts need to be stand-alone systems with every thing applicable embedded inside. Unfortunately, Vue does not support inserted types. You can use Webpack or Browserify, yet if you do not want to, then there is actually no suitable service. This plugin inserts itself in addition to Vue.component() as well as if there is actually a "type" current in component's interpretation, it adds it to the webpage. All CSS selectors are actually prefixed along with the title of the element to avoid problems.The CSS selectors are prefixed along with the title of the part, as an example:.Vue.component(' my-component',.layout: 'Hi, planet!',.style: 'span,.this-too font-color: red '. ).The above setup will certainly add.my-component span,.my-component. this-too font-color: reddish to the web page.Consumption.The plugin could be utilized just by incorporating the 'vue-css. js' file into your job.That's it give vue-css a try if you are actually trying to find a different method to support embedded types in your tasks.