How do you set up Stylus in Angular2 CLI project?

梦想与她 提交于 2019-12-07 03:32:32

问题


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.



来源:https://stackoverflow.com/questions/43886486/how-do-you-set-up-stylus-in-angular2-cli-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!