Skip to content

Commit 041a064

Browse files
committed
docs: add documentation for using font awesome and scss (#10861)
1 parent 0b7dd0e commit 041a064

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

docs/documentation/stories/include-font-awesome.md

+18-2
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,29 @@ 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+
With existing project with `CSS`, change `angular.json` to look for `styles.scss` instead of css:
38+
```
39+
// in angular.json
40+
"build": {
41+
"options": {
42+
"styles": [
43+
"src/styles.scss"
44+
],
45+
}
46+
}
47+
```
48+
Make sure to change `styles.css` to `styles.scss`.
3349

3450
Create an empty file _variables.scss in src/.
3551

0 commit comments

Comments
 (0)