LoginSignup
4
3

More than 5 years have passed since last update.

Angular cliでsass/scssを使う

Posted at

Angular cliでsass/scssを使う。

  • project作成時
  • 作成中のProject

参考

Project作成

Angular cliでプロジェクトの作成タイミングと一緒に使う

$ ng new sass-sample --style=sass # sassのプロジェクト作成
$ ng new scss-sample --style=scss # scssのプロジェクト作成
$ ng new less-sample --style=less # lessのプロジェクト作成

作成中のProject

Angular6以前

$ ng set defaults.styleExt scss

Angular6以降

cliで設定

$ ng config schematics.@schematics/angular:component.styleext scss

angular.json

angular.json
"schematics": {
      "@schematics/angular:component": {
      "styleext": "scss"
    }
}
4
3
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3