Sleep

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

.vue-css.The Vue.js plugin made through @nxtchg, vue-css is actually made for stashing pertinent CSS along with.vue components, permitting you to bundle CSS data with your elements.Vue parts ought to be stand-alone units along with every little thing appropriate embedded inside. Sadly, Vue does not sustain embedded types. You can utilize Webpack or Browserify, but if you do not want to, then there is no ideal solution. This plugin inserts itself in addition to Vue.component() and if there is a "type" member present in element's definition, it adds it to the web page. All CSS selectors are actually prefixed along with the name of the component to stay away from conflicts.The CSS selectors are actually prefixed with the name of the part, as an example:.Vue.component(' my-component',.template: 'Hi there, world!',.design: 'span,.this-too font-color: reddish '. ).The above configuration will certainly add.my-component span,.my-component. this-too font-color: reddish to the page.Use.The plugin can be made use of only through adding the 'vue-css. js' report into your task.That's it offer vue-css a go if you are trying to find an alternative method to sustain inserted types in your tasks.

Articles You Can Be Interested In