get/set have been deprecated in favor of the config command

前端 未结 3 671
你的背包
你的背包 2021-02-01 15:14

Using angular-cli at the command line, I executed:

ng set defaults.styleExt styl

to set the default styling to Stylus and I got this response:<

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-01 15:51

    For Angular 6 you want to use the following command:

    ng config schematics.@schematics/angular:component.styleext styl
    

    This will automatically add the "schematics" section halfer mentioned to the angular.json file.

    Here is the official documentation: https://github.com/angular/angular-cli/wiki/stories-css-preprocessors

提交回复
热议问题