Sleep

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

.vue-css.The Vue.js plugin made by @nxtchg, vue-css is produced keeping appropriate CSS along with.vue components, enabling you to pack CSS documents along with your elements.Vue components need to be actually stand-alone units with every little thing applicable ingrained within. Sadly, Vue does not assist inserted types. You can easily make use of Webpack or even Browserify, however if you do not desire to, after that there is no ideal option. This plugin inserts itself atop Vue.component() and if there is a "type" element found in part's definition, it incorporates it to the page. All CSS selectors are prefixed with the name of the element to steer clear of disputes.The CSS selectors are actually prefixed along with the name of the component, as an example:.Vue.component(' my-component',.theme: 'Hi there, globe!',.type: 'span,.this-too font-color: reddish '. ).The above configuration will definitely add.my-component span,.my-component. this-too font-color: reddish to the webpage.Utilization.The plugin can be made use of just through adding the 'vue-css. js' data right into your venture.That's it give vue-css a try out if you are trying to find a different way to sustain embedded types in your tasks.

Articles You Can Be Interested In