Sleep

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

.vue-css.The Vue.js plugin generated through @nxtchg, vue-css is actually created holding relevant CSS along with.vue parts, enabling you to pack CSS file with your components.Vue parts should be stand-alone devices with everything appropriate inserted inside. Unfortunately, Vue does not sustain embedded designs. You may make use of Webpack or even Browserify, but if you don't would like to, after that there is no appropriate answer. This plugin inserts on its own atop Vue.component() and if there is a "design" member found in element's meaning, it adds it to the page. All CSS selectors are actually prefixed with the title of the part to stay clear of conflicts.The CSS selectors are actually prefixed with the label of the component, as an example:.Vue.component(' my-component',.theme: 'Greetings, planet!',.design: 'span,.this-too font-color: reddish '. ).The above setup will definitely add.my-component span,.my-component. this-too font-color: red to the web page.Usage.The plugin can be used just through including the 'vue-css. js' documents in to your task.That's it give vue-css a shot if you are actually trying to find an alternative means to sustain ingrained styles in your tasks.