Angular-cli specifying file names for production environment

Viewed 13023

Angular is generating random names for the files when running ng build --prod. Is there a way to specify the names we want? We are using angular-cli. We really need this as our angular application is embedded inside a CMS platform.

2 Answers

Now it is possible by setting up namedChunks: true in the file angular.json. It will leave generated readable name for chanks, same as you see when starting a project by ng start

Related