Skip to content

Commit 67e70a0

Browse files
Broccofilipesilva
authored andcommitted
chore: update readme re: CSS preprocessor info (#1466)
Also add and to 3rd parth instructions for clarity
1 parent c31e8cb commit 67e70a0

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,10 @@ source ~/.bash_profile
234234
### CSS Preprocessor integration
235235

236236
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/))
241241

242242
To use these prepocessors simply add the file to your component's `styleUrls`:
243243

@@ -258,18 +258,23 @@ style files:
258258

259259
```bash
260260
ng 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

268273
If 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

0 commit comments

Comments
 (0)