Angular 6 library shared stylesheets

后端 未结 4 1337
清酒与你
清酒与你 2021-01-31 03:28

How can you setup a index.scss and import global stylesheets for variables, mixins, etc, to an angular 6 library?

Angular CLI generates a lib with a root component &

4条回答
  •  广开言路
    2021-01-31 04:18

    Run ng init on the project, so that it will initialize the project as an Angular CLI project.

    Edit: My bad, it seems they removed init from the CLI. You can try ng new --src

    It might overwrite some files, so try this on a copy of the project.

提交回复
热议问题