Home  >  Article  >  Web Front-end  >  How to install style/css loader in vue2.0

How to install style/css loader in vue2.0

亚连
亚连Original
2018-05-30 11:53:031709browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn