Angular cli - adding cdn scripts / styles as global priority

I added angular-cli to the new assembly, some styles and a script in the index.html header, but it seems like webpack is not loading these files. This can be a problem as these files are downloaded from cdn. Is there any way to add global scripts / styles from cdn like

 apps[0].scripts // styles section in angular-cli.json 
 apps[0].styles //script section in angular-cli.json 
+4
source share
1 answer

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

+2
source

Source: https://habr.com/ru/post/1661055/


All Articles