angular-cli how to add global styles?

前端 未结 13 1523
南笙
南笙 2020-12-16 09:18

I created a global style sheet using sass and put it in the public/style/styles.scss. I only specify a background color.

In the index, I added a link to

13条回答
  •  时光说笑
    2020-12-16 10:00

    just rename src/styles.css to src/styles.scss

    remember to rename styles.css to styles.scss in the .angular-cli.json too.

提交回复
热议问题