Sleep

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

.vue-css.The Vue.js plugin developed through @nxtchg, vue-css is actually made for holding pertinent CSS along with.vue parts, permitting you to pack CSS file along with your components.Vue parts ought to be actually stand-alone devices along with every little thing appropriate ingrained inside. Unfortunately, Vue doesn't assist inserted designs. You can utilize Webpack or even Browserify, however if you do not intend to, at that point there is no suitable option. This plugin inserts itself on top of Vue.component() and also if there is a "design" member found in component's meaning, it includes it to the page. All CSS selectors are actually prefixed with the name of the component to avoid disagreements.The CSS selectors are actually prefixed with the name of the element, as an example:.Vue.component(' my-component',.layout: 'Hi there, globe!',.style: 'span,.this-too font-color: reddish '. ).The above arrangement will definitely add.my-component span,.my-component. this-too font-color: red to the page.Use.The plugin may be made use of just by incorporating the 'vue-css. js' file in to your project.That's it give vue-css a go if you are looking for an alternative way to assist ingrained styles in your tasks.

Articles You Can Be Interested In