Force browser to clear cache in Angular environment
By setting your build command to target production ng build --target=production
, the cli automatically hashes your js files. Here are the docs You can also set the command manually if you wanted it on dev ng build --output-hashing=all