Sleep

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

.vue-css.The Vue.js plugin generated by @nxtchg, vue-css is created stashing relevant CSS along with.vue components, enabling you to bundle CSS file along with your elements.Vue components must be actually stand-alone systems with everything pertinent embedded inside. Regrettably, Vue doesn't sustain embedded designs. You can easily use Webpack or Browserify, but if you don't intend to, at that point there is no appropriate service. This plugin inserts on its own in addition to Vue.component() and also if there is a "style" member found in part's definition, it adds it to the page. All CSS selectors are prefixed along with the label of the component to stay away from problems.The CSS selectors are prefixed with the title of the part, for example:.Vue.component(' my-component',.design template: 'Hi, world!',.type: 'span,.this-too font-color: red '. ).The above arrangement will definitely add.my-component span,.my-component. this-too font-color: reddish to the page.Use.The plugin can be used simply by adding the 'vue-css. js' data right into your venture.That's it provide vue-css a go if you are seeking an alternative way to assist embedded designs in your jobs.