Sleep

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

.vue-css.The Vue.js plugin produced by @nxtchg, vue-css is actually made for storing relevant CSS along with.vue elements, enabling you to bundle CSS data with your components.Vue components must be stand-alone devices along with every thing pertinent embedded within. However, Vue does not assist inserted styles. You can easily utilize Webpack or even Browserify, yet if you don't would like to, after that there is no suited service. This plugin inserts on its own on top of Vue.component() and also if there is a "design" element current in element's definition, it adds it to the web page. All CSS selectors are actually prefixed with the title of the component to prevent problems.The CSS selectors are prefixed with the name of the component, as an example:.Vue.component(' my-component',.design template: 'Hello there, world!',.design: 'span,.this-too font-color: red '. ).The above arrangement will definitely add.my-component span,.my-component. this-too font-color: red to the web page.Utilization.The plugin could be utilized merely through incorporating the 'vue-css. js' report right into your job.That's it offer vue-css a try if you are searching for an alternate method to assist inserted designs in your tasks.

Articles You Can Be Interested In