Sleep

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

.vue-css.The Vue.js plugin made by @nxtchg, vue-css is produced stashing applicable CSS along with.vue parts, allowing you to bundle CSS report with your elements.Vue parts ought to be stand-alone systems with every thing relevant ingrained within. Regrettably, Vue does not assist ingrained styles. You can utilize Webpack or Browserify, but if you don't would like to, at that point there is no ideal service. This plugin inserts itself atop Vue.component() and if there is actually a "type" member present in part's meaning, it includes it to the webpage. All CSS selectors are prefixed along with the title of the part to prevent conflicts.The CSS selectors are prefixed with the title of the element, as an example:.Vue.component(' my-component',.layout: 'Hi, globe!',.type: 'span,.this-too font-color: reddish '. ).The above configuration will certainly add.my-component span,.my-component. this-too font-color: red to the web page.Usage.The plugin could be made use of only by including the 'vue-css. js' file right into your job.That's it give vue-css a shot if you are trying to find an alternative means to sustain embedded styles in your ventures.

Articles You Can Be Interested In