Sleep

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

.vue-css.The Vue.js plugin developed by @nxtchg, vue-css is created keeping relevant CSS along with.vue parts, permitting you to bundle CSS file with your parts.Vue components need to be actually stand-alone systems with everything relevant ingrained within. Unfortunately, Vue does not sustain ingrained styles. You can easily make use of Webpack or even Browserify, however if you don't intend to, after that there is actually no ideal service. This plugin inserts on its own atop Vue.component() and if there is a "type" member current in part's meaning, it incorporates it to the webpage. All CSS selectors are actually prefixed with the label of the part to avoid problems.The CSS selectors are actually prefixed along with the name of the part, for instance:.Vue.component(' my-component',.template: 'Hello, world!',.type: 'span,.this-too font-color: reddish '. ).The above setup will definitely add.my-component span,.my-component. this-too font-color: red to the page.Usage.The plugin may be used merely by including the 'vue-css. js' data right into your job.That's it give vue-css a go if you are actually looking for an alternative means to support inserted designs in your ventures.

Articles You Can Be Interested In