Sleep

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

.vue-css.The Vue.js plugin made through @nxtchg, vue-css is produced saving pertinent CSS along with.vue elements, allowing you to pack CSS file along with your parts.Vue parts should be actually stand-alone units with everything relevant ingrained inside. Unfortunately, Vue does not sustain inserted types. You can use Webpack or Browserify, yet if you do not desire to, after that there is actually no suited service. This plugin inserts on its own atop Vue.component() and also if there is actually a "design" found in component's interpretation, it adds it to the page. All CSS selectors are actually prefixed with the label of the element to avoid disputes.The CSS selectors are prefixed along with the name of the part, for instance:.Vue.component(' my-component',.theme: 'Hi, world!',.style: 'span,.this-too font-color: reddish '. ).The above setup will add.my-component span,.my-component. this-too font-color: red to the page.Utilization.The plugin may be used simply by incorporating the 'vue-css. js' file right into your job.That's it offer vue-css a try if you are actually searching for a different way to sustain ingrained styles in your jobs.

Articles You Can Be Interested In