Sleep

Vue. js plugin that enables you to bundle CSS along with your parts

.vue-css.The Vue.js plugin made by @nxtchg, vue-css is actually created holding pertinent CSS along with.vue components, allowing you to pack CSS data with your components.Vue elements need to be actually stand-alone devices along with every thing appropriate embedded within. Sadly, Vue does not assist embedded designs. You can make use of Webpack or Browserify, yet if you don't would like to, then there is actually no appropriate option. This plugin inserts on its own in addition to Vue.component() and also if there is a "type" present in element's definition, it includes it to the page. All CSS selectors are actually prefixed with the label of the element to prevent problems.The CSS selectors are prefixed with the name of the part, for example:.Vue.component(' my-component',.template: 'Greetings, world!',.style: 'span,.this-too font-color: reddish '. ).The above arrangement is going to add.my-component span,.my-component. this-too font-color: red to the web page.Use.The plugin can be made use of merely through incorporating the 'vue-css. js' documents in to your venture.That's it give vue-css a try if you are trying to find an alternative technique to sustain embedded types in your tasks.

Articles You Can Be Interested In