how to import all css of node_modules in vuejs how to import all css of node_modules in vuejs vue.js vue.js

how to import all css of node_modules in vuejs


You can import it in yout main.js

import 'vuetify/dist/vuetify.min.css'

for this to work you should have css-loader in you webpack config

In your webpack

module: {  loaders: [    { test: /\.css$/, loader: "css-loader" }  ]}

OR

In your App.vue component add two style tags , one for global styles as App.vue is the entry point and other for scoped styles if you have any with the scoped attribute.See src imports.

<style src='vuetify/dist/vuetify.min.css'>    /* global styles */</style> <style scoped>    /* local styles */</style>