I'd like to use Stylus instead of standard CSS in my Angular2 CLI project. I've had a look around and can't find any solid sources on how to set this up.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
When you start the project with Angular-cli run:
ng new my-app --style styl
Angular 6+ To change pre-processor on existing project run:
ng config schematics.@schematics/angular:component.styleext styl
BELOW Angular 6 To change pre-processor on existing project run:
ng set defaults.styleExt styl
回答2:
It just works. Didn't change anything.