Sleep

Vue. js plugin that permits you to bundle CSS along with your components

.vue-css.The Vue.js plugin produced by @nxtchg, vue-css is actually created storing appropriate CSS along with.vue components, permitting you to bundle CSS documents along with your parts.Vue parts need to be actually stand-alone devices along with every little thing pertinent inserted inside. Sadly, Vue does not assist embedded styles. You can make use of Webpack or Browserify, yet if you don't would like to, at that point there is actually no ideal service. This plugin inserts itself in addition to Vue.component() and also if there is actually a "type" existing in element's meaning, it adds it to the web page. All CSS selectors are prefixed with the name of the part to steer clear of conflicts.The CSS selectors are actually prefixed along with the label of the component, for instance:.Vue.component(' my-component',.theme: 'Hello there, world!',.type: 'span,.this-too font-color: red '. ).The above configuration will add.my-component span,.my-component. this-too font-color: reddish to the webpage.Consumption.The plugin may be used simply through including the 'vue-css. js' documents in to your job.That's it offer vue-css a try if you are trying to find a different means to support ingrained designs in your projects.