Angular2 - What folder for custom CSS / JS files?

后端 未结 3 1420
别那么骄傲
别那么骄傲 2021-01-27 05:49

I have to include a set of CSS and JS files in my angular2 application.

What is the correct folder in order to have them included when I do the build?

3条回答
  •  一整个雨季
    2021-01-27 06:21

    I am using webpack and in my application, I have placed them in src/assets folder now I can just use it like this

    
    

    You can make separate folders for javascript, images and stylesheets etc. in your assets folder and append in the path.

提交回复
热议问题