Reputation: 2227
How to make Angular-Cli (Angular-4) automatically append URL's to Style's or Script's when adding external libraries from npm install --save into .angular-cli.json?
So far, We need to manually traverse into the node_modules folder and look for the address of the file and use the same in the .angular-cli.json.
Is there any work around ?
Thank You
Regards
Shohil Sethia
Upvotes: 0
Views: 68
Reputation: 301
use the --base-href https:// to build the project. like ng build -prod --base-ref http://
Also consider using @angular/[email protected] or latest if latest is working.
Upvotes: 1