Angular-cli defining filenames for production environment
Angular generates random filenames on startup 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 app is built into the CMS framework.
+3
DAG
source
to share
1 answer
I think you can.
-
use standard names like inline.bundle.js vendor.bundle.js, main.bundle.js, this permission is in dev mode, but if you want to have names in prod mode. In your case
ng build -prod
you can use the following flag to avoid hashing
ng build -prod --output-hashing none
more details https://github.com/angular/angular-cli/wiki/build
+6
Mauricio de la quintana
source
to share