Home > Web Front-end > JS Tutorial > body text

How to configure the loader in vue?

亚连
Release: 2018-06-11 10:58:56
Original
1525 people have browsed it

This article introduces the common loaders and configuration details of vue projects. Now I share them with you and give them a reference.

This article introduces the common loaders and configuration details of vue projects and shares them with everyone. The details are as follows:

1. Install sass:

1.1 Because sass-loader depends on node-sass, so when installing sass-loader, you also need to install node-sass

npm install --save-dev node-sass
npm install --save-dev sass-loader
Copy after login

1.2 After the installation is complete, modify the