4

I've added to fresh build of angular-cli, some styles and script in head of index.html, but it seems that webpack is not loading those files. It might be problem since those files are loaded from cdn. Is there any way to add globaly scripts/styles from cdn as

 apps[0].scripts // styles section in angular-cli.json 
 apps[0].styles //script section in angular-cli.json 
user2771738
  • 913
  • 11
  • 31
  • Looking for an answer for this. But, after searching found that this is the recommended way to do that. Explains an example for font-awesome - http://stackoverflow.com/questions/38796541/how-to-add-font-awesome-to-angular-2-cli-project/39557671 – Saiyaff Farouk Mar 06 '17 at 17:47

1 Answers1

2

you have to add your scripts and styles directly in angular-cli.json

Andrei Chivu
  • 135
  • 2
  • 12