forked from mgechev/angular-seed
-
Notifications
You must be signed in to change notification settings - Fork 0
Enabling SASS support
Yonet edited this page Sep 2, 2016
·
5 revisions
This guide describes how to enable the SASS support.
- Rename all of your
*.cssfiles to*.scss.
- If you are using MacOS, install rename with homebrew (
brew install rename) cd src-
find . -name "*.css" -exec rename 's/\.css$/.scss/' '{}' \;. All css files in the current folder will be renamed to scss recursively -
find . -name "*.css" -exec rm '{}' \;. All .css files will be deleted
- Set the
ENABLE_SCSSconfig value totrueduring abuildorservetask:
$ npm start -- --scss$ npm run build.[dev|e2e|prod|test] -- --scss$ npm run serve.[dev|e2e|prod|test] -- --scss
For a permanent enablement, set the ENABLE_SCSS config value to true in either seed.config.ts or project.config.ts.