File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed
docs/documentation/stories Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,31 @@ To add Font Awesome CSS icons to your app...
2323"build" : {
2424 "options" : {
2525 "styles" : [
26- " ../node_modules/font-awesome/css/font-awesome.css"
27- " styles.css"
26+ " ../node_modules/font-awesome/css/font-awesome.css" ,
27+ " src/ styles.css"
2828 ],
2929 }
3030}
3131```
3232### Using SASS
33+ Create new project with SASS:
34+ ```
35+ ng new cli-app --style=scss
36+ ```
37+ To use with existing project with ` CSS ` :
38+ 1 . Rename ` src/styles.css ` to ` src/styles.scss `
39+ 2 . Change ` angular.json ` to look for ` styles.scss ` instead of css:
40+ ```
41+ // in angular.json
42+ "build": {
43+ "options": {
44+ "styles": [
45+ "src/styles.scss"
46+ ],
47+ }
48+ }
49+ ```
50+ Make sure to change ` styles.css ` to ` styles.scss ` .
3351
3452Create an empty file _ variables.scss in src/.
3553
You can’t perform that action at this time.
0 commit comments