Sleep

Vue. js plugin that allows you to bundle CSS along with your elements

.vue-css.The Vue.js plugin generated by @nxtchg, vue-css is actually produced holding applicable CSS along with.vue parts, enabling you to pack CSS documents along with your components.Vue elements should be actually stand-alone devices along with everything applicable ingrained within. Sadly, Vue does not assist embedded types. You may utilize Webpack or Browserify, however if you don't wish to, after that there is actually no ideal answer. This plugin inserts on its own atop Vue.component() as well as if there is a "style" element present in part's definition, it incorporates it to the webpage. All CSS selectors are prefixed with the label of the part to steer clear of conflicts.The CSS selectors are prefixed along with the name of the component, as an example:.Vue.component(' my-component',.layout: 'Greetings, planet!',.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.Utilization.The plugin could be made use of just by adding the 'vue-css. js' file in to your job.That's it offer vue-css a try out if you are looking for a different way to support embedded designs in your jobs.