Angular - including CSS file in index.html

后端 未结 5 936
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-12 12:27

I\'m trying to use the angular2-busy library in an angular project created with the CLI, but am having an issue importing the stylesheet:

5条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-12 13:07

    Angular CLI have it's own way to initialize your global css/js.

    They are located in .angular-cli.json configuration

    Locate "styles": and add your css there

    Example :

    "styles": [
       "../node_modules/angular2-busy/build/style/busy.css",
       "styles.css"
    ],
    

    Hope that helps.

提交回复
热议问题