vue project introduced Sass

  Sass As the mature, stable, powerful css extension language, a growing number of front-end engineers like it. Here's how the project vue

Introduced Sass.

  First in the project folder execute command npm install vue-cli -g, scaffolding installation vue-cli, if already installed, you do not have to install it again, directly

Skip this step. Then execute the command line vue init webpack mypro (Note: mypro is the project name).

  Next, install dependencies Sass, using the following command line:

  npm install sass-loader --save-dev

  npm install node-sass --save-dev

  After machining, find the build folder, modify the following configuration webpack.base.conf.js inside the folder in which:

  Add a profile under the rules in the module:

  And finally to the application of this step, just set lang = "scss"

  Well, it is not that simple.

 

Guess you like

Origin www.cnblogs.com/cool-wan/p/11417525.html
Recommended