Sleep

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

.vue-css.The Vue.js plugin developed by @nxtchg, vue-css is created stashing applicable CSS along with.vue components, allowing you to pack CSS file along with your components.Vue elements should be actually stand-alone devices with every thing pertinent ingrained within. However, Vue doesn't assist inserted styles. You can easily use Webpack or even Browserify, yet if you do not want to, at that point there is no suitable remedy. This plugin inserts on its own atop Vue.component() and if there is actually a "type" current in part's interpretation, it includes it to the web page. All CSS selectors are actually prefixed with the label of the component to avoid problems.The CSS selectors are actually prefixed along with the name of the element, as an example:.Vue.component(' my-component',.template: 'Hey there, world!',.design: 'span,.this-too font-color: red '. ).The above setup will certainly add.my-component span,.my-component. this-too font-color: reddish to the webpage.Consumption.The plugin may be utilized only by incorporating the 'vue-css. js' documents right into your task.That's it give vue-css a shot if you are actually looking for an alternate means to assist embedded designs in your projects.

Articles You Can Be Interested In