Sleep

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

.vue-css.The Vue.js plugin generated by @nxtchg, vue-css is created storing relevant CSS along with.vue parts, enabling you to bundle CSS documents along with your components.Vue elements must be stand-alone units along with everything applicable embedded within. Unfortunately, Vue does not assist inserted types. You can easily use Webpack or even Browserify, however if you do not wish to, after that there is actually no ideal service. This plugin inserts itself atop Vue.component() and also if there is a "style" element current in element's meaning, it incorporates it to the web page. All CSS selectors are actually prefixed with the name of the component to prevent disagreements.The CSS selectors are prefixed with the label of the component, for instance:.Vue.component(' my-component',.theme: 'Hi there, world!',.design: 'span,.this-too font-color: red '. ).The above setup will definitely add.my-component span,.my-component. this-too font-color: red to the page.Use.The plugin may be made use of only through incorporating the 'vue-css. js' data in to your venture.That's it provide vue-css a try out if you are seeking an alternative means to assist ingrained types in your projects.