How to use Less with Angular 2?

前端 未结 4 911
死守一世寂寞
死守一世寂寞 2021-02-05 04:47

I would like to know how I can add less compiling to my Angular 2 project. Because each component has its own .css file (which now will be a .less file) I am not su

4条回答
  •  伪装坚强ぢ
    2021-02-05 05:47

    If you are creating a new app, just after the app name add --style to choose your preprocessor.

    ng new my-first-app --style less
    

    All options for angular cli 'new' command

提交回复
热议问题