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
234234### CSS Preprocessor integration
235235
236236Angular-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/ ) )
241241
242242To use these prepocessors simply add the file to your component's ` styleUrls ` :
243243
@@ -258,18 +258,23 @@ style files:
258258
259259``` bash
260260ng new sassy-project --style=sass
261+ ```
262+
263+ Or set the default style on an existing project:
261264
265+ ``` bash
266+ ng set defaults.styleExt scss
262267```
263268
264269### 3rd Party Library Installation
265270
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.
267272
268273If the library does not include typings, you can install them using npm:
269274
270275``` bash
271- npm install moment
272- npm install @types/moment
276+ npm install moment --save
277+ npm install @types/moment --save-dev
273278```
274279
275280### Updating angular-cli
You can’t perform that action at this time.
0 commit comments