Sleep

Vue. js plugin that permits you to bundle CSS with your elements

.vue-css.The Vue.js plugin developed through @nxtchg, vue-css is actually produced stashing appropriate CSS along with.vue elements, allowing you to bundle CSS documents along with your elements.Vue components must be actually stand-alone devices along with everything relevant embedded inside. Sadly, Vue doesn't sustain embedded types. You can easily utilize Webpack or Browserify, yet if you do not intend to, at that point there is no appropriate remedy. This plugin inserts on its own in addition to Vue.component() and also if there is a "type" element existing in part's definition, it incorporates it to the web page. All CSS selectors are actually prefixed along with the name of the part to prevent disagreements.The CSS selectors are actually prefixed with the title of the component, as an example:.Vue.component(' my-component',.layout: 'Greetings, planet!',.type: 'span,.this-too font-color: red '. ).The above configuration will definitely add.my-component span,.my-component. this-too font-color: red to the web page.Utilization.The plugin may be made use of merely through incorporating the 'vue-css. js' documents into your venture.That's it provide vue-css a try if you are actually looking for an alternative way to sustain inserted types in your ventures.

Articles You Can Be Interested In