How to remove hash from Angular "ng build" filenames
Angular generates filenames like Inter-Light.27083fa6375bb9ef.woff2 in the dist
folder when building for production using ng build
.
These hashes have the purpose of preventing the files from being cached, so if you remove the hash, you will need to find some other way of preventing caching
You can disable the hashes by using
--output-hashing none
as an argument to ng build
.
Full ng build
example:
ng build --aot --build-optimizer --optimization --progress --output-hashing none