This article is a mirror article of machine translation, please click here to jump to the original article.

View: 13500|Reply: 0

[Angular] Angular6 project uses scss

[Copy link]
Posted on 10/17/2018 3:21:30 PM | | | |
1. Use SCSS for new projects

ng new when creating a project


2. Existing projects use SCSS

First, install the node-sass package


Next, install the sass-loader package


Then modify angular.json configuration:



Finally, change some of the project's css files to scss files and modify the references!







Previous:Angular 6 prohibits the generation of *.spec.ts files
Next:Fixed menu/top-level plugin Sticky-Kit bug solution in angular
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com