Sleep

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

.vue-css.The Vue.js plugin generated by @nxtchg, vue-css is actually created storing pertinent CSS along with.vue components, allowing you to pack CSS data along with your components.Vue components should be stand-alone units with every little thing relevant inserted inside. Regrettably, Vue doesn't assist ingrained types. You can easily use Webpack or even Browserify, yet if you do not would like to, after that there is actually no appropriate solution. This plugin inserts itself on top of Vue.component() and if there is a "design" element existing in part's definition, it includes it to the page. All CSS selectors are prefixed along with the name of the element to avoid disagreements.The CSS selectors are actually prefixed along with the name of the element, for instance:.Vue.component(' my-component',.design template: 'Hi there, planet!',.type: 'span,.this-too font-color: red '. ).The above setup will definitely add.my-component span,.my-component. this-too font-color: reddish to the page.Usage.The plugin could be used merely through adding the 'vue-css. js' data into your job.That's it offer vue-css a shot if you are trying to find an alternate method to support embedded types in your projects.

Articles You Can Be Interested In