Skip to content

Files

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
32 lines (25 loc) · 760 Bytes

css-preprocessors.md

File metadata and controls

32 lines (25 loc) · 760 Bytes

CSS Preprocessor integration

Angular CLI supports all major CSS preprocessors:

To use these preprocessors simply add the file to your component's styleUrls:

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss']
})
export class AppComponent {
  title = 'app works!';
}

When generating a new project you can also define which extension you want for style files:

ng new sassy-project --style=sass

Or set the default style on an existing project:

ng set defaults.styleExt scss