Reputation: 713
I would like to add versioning for my angular application to avoid cache like style.css?ver=1
? Where should I add that in angular-cli.json
?
Upvotes: 3
Views: 8133
Reputation: 12247
Use ng build --prod
, it will hash your assets and modules and append the hash to the file name.
You have nothing to manage manually.
Upvotes: 11