File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -234,10 +234,10 @@ source ~/.bash_profile
234
234
### CSS Preprocessor integration
235
235
236
236
Angular-CLI supports all major CSS preprocessors:
237
- - sass (node- sass)
238
- - less (less )
239
- - compass (compass-importer + node-sass )
240
- - stylus (stylus)
237
+ - sass/scss ( [ http://sass-lang.com/ ] ( http:// sass-lang.com/ ) )
238
+ - less ([ http://lesscss.org/ ] ( http://lesscss.org/ ) )
239
+ - compass ([ http:// compass-style.org/ ] ( http://compass-style.org/ ) )
240
+ - stylus ([ http:// stylus-lang.com/ ] ( http://stylus-lang.com/ ) )
241
241
242
242
To use these prepocessors simply add the file to your component's ` styleUrls ` :
243
243
@@ -258,18 +258,23 @@ style files:
258
258
259
259
``` bash
260
260
ng new sassy-project --style=sass
261
+ ```
262
+
263
+ Or set the default style on an existing project:
261
264
265
+ ``` bash
266
+ ng set defaults.styleExt scss
262
267
```
263
268
264
269
### 3rd Party Library Installation
265
270
266
- Simply install your library via ` npm install lib-name ` and import it in your code.
271
+ Simply install your library via ` npm install lib-name --save ` and import it in your code.
267
272
268
273
If the library does not include typings, you can install them using npm:
269
274
270
275
``` bash
271
- npm install moment
272
- npm install @types/moment
276
+ npm install moment --save
277
+ npm install @types/moment --save-dev
273
278
```
274
279
275
280
### Updating angular-cli
You can’t perform that action at this time.
0 commit comments