Sleep

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

.vue-css.The Vue.js plugin made by @nxtchg, vue-css is actually created keeping relevant CSS along with.vue components, allowing you to pack CSS file with your elements.Vue elements ought to be stand-alone systems along with everything applicable inserted inside. However, Vue does not assist embedded designs. You can easily use Webpack or Browserify, yet if you don't wish to, at that point there is no suitable option. This plugin inserts on its own in addition to Vue.component() and also if there is a "style" member current in part's definition, it adds it to the webpage. All CSS selectors are prefixed with the title of the component to stay away from disagreements.The CSS selectors are prefixed with the label of the element, for instance:.Vue.component(' my-component',.design template: 'Hey there, globe!',.design: 'span,.this-too font-color: red '. ).The above setup will definitely add.my-component span,.my-component. this-too font-color: reddish to the web page.Consumption.The plugin can be used simply through incorporating the 'vue-css. js' data right into your task.That's it offer vue-css a try out if you are actually seeking a different technique to assist inserted designs in your projects.

Articles You Can Be Interested In