Sleep

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

.vue-css.The Vue.js plugin generated through @nxtchg, vue-css is created storing appropriate CSS along with.vue components, allowing you to pack CSS report with your parts.Vue components ought to be actually stand-alone units along with whatever relevant inserted inside. Sadly, Vue doesn't assist embedded styles. You can make use of Webpack or even Browserify, yet if you do not would like to, after that there is no suitable option. This plugin inserts itself atop Vue.component() as well as if there is a "type" element present in component's interpretation, it includes it to the web page. All CSS selectors are actually prefixed with the name of the component to steer clear of problems.The CSS selectors are actually prefixed with the label of the element, for example:.Vue.component(' my-component',.design template: 'Hello there, planet!',.style: 'span,.this-too font-color: reddish '. ).The above setup will add.my-component span,.my-component. this-too font-color: red to the page.Utilization.The plugin may be made use of merely by including the 'vue-css. js' documents in to your project.That's it give vue-css a try out if you are actually trying to find an alternate method to support embedded designs in your jobs.