How do I rename bundles generated with ng serve of Angular 13?

636 Views Asked by At

I need to rename bundles generated post ng serve of Angular Application. Currently, the bundles are:

vendor.js             
polyfills.js          
styles.css
styles.js 
main.js               
runtime.js            

I need to rename these files:

vendor-<name_application>.js
polyfills-<name_application>.js          
styles-<name_application>.css
styles-<name_application>.js 
main-<name_application>.js               
runtime-<name_application>.js   

Is it possible?

1

There are 1 best solutions below

1
playerone On

This can be done with --named-chunks argument or webpack plugin.

check this link.