Sleep

Vue. js plugin that permits you to pack CSS with your parts

.vue-css.The Vue.js plugin generated through @nxtchg, vue-css is produced holding applicable CSS along with.vue elements, enabling you to bundle CSS data along with your components.Vue components must be actually stand-alone systems along with every thing appropriate inserted within. Regrettably, Vue doesn't support embedded types. You can use Webpack or even Browserify, but if you don't intend to, at that point there is actually no ideal option. This plugin inserts itself on top of Vue.component() and if there is a "design" element present in component's interpretation, it adds it to the page. All CSS selectors are actually prefixed along with the title of the component to steer clear of conflicts.The CSS selectors are prefixed along with the name of the component, for instance:.Vue.component(' my-component',.template: 'Greetings, globe!',.type: 'span,.this-too font-color: red '. ).The above arrangement will definitely add.my-component span,.my-component. this-too font-color: red to the page.Use.The plugin could be made use of simply through including the 'vue-css. js' file into your venture.That's it give vue-css a go if you are trying to find an alternative technique to support inserted types in your jobs.