if you want to use .scss / .sass
in your project
npm i sass-loader node-sass -D
official document is in great detail
You can select pre-processors (Sass/Less/Stylus) when creating the project. If you did not do so, you can also just manually install the corresponding webpack loaders. The loaders are pre-configured and will automatically be picked up. For example, to add Sass to an existing project, simply run:
npm install -D sass-loader node-sass
Then you can import .scss files, or use it in *. Vue files with:
<style lang="scss">
$color = red;
</style>
sf, a group of water army responders, hosts has blocked the site. Don't you understand the problem?
the questioner executes this question. Npm audit is used for npm audit
: identify and fix unsafe dependencies.
scss does have this problem, such as depending on packages that are newer than the specified version.
if you execute npm audit, it's probably the version of the hoek package. If scss works properly, ignore it.
Bye, the website has been blocked
.