Below I will share with you a method for installing style/css loader in vue2.0. It has a good reference value and I hope it will be helpful to everyone.
If the project needs to reference additional ui component libraries, you need to install style-loader and css-loader
Install style-loader (css-loader is included by default)
npm install style-loader -D
Then, open the template build--webpack.base.conf.js (depending on the initialization template, it may also be the build webpack below. base.conf.js ), add a new json, pay attention to the style! The css order cannot be reversed (! means connection)
The above is what I compiled for everyone. I hope it will be helpful to everyone in the future.
Related articles:
jQuery ajax reads json data and sorts it by price example
vue develops a button component Sample code
vue-cli scaffolding-configuration file under bulid
The above is the detailed content of How to install style/css loader in vue2.0. For more information, please follow other related articles on the PHP Chinese website!