Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular 7 build: How to remove output hash and default~<view1>~<module1> file?

I've build angular app using:

ng build --prod --named-chunks --output-hashing=none

It output module-A.js, module-B.js as expected but there are some files like default~<view1>~<module-1>~123xzy.js. (In runtime.js these default files are required)

I want to separate module-A.js to another domain but I must move also default~<view1>~<module-1>~123xzy.js, so it also affect view1.

How can I remove such default~<view1>~<module-1>~123xzy.js? I.e. Config to combine default~<view1>~<module-1>~123xzy.js into module-A.js? (And I don't want refactor all structure code to eliminate such files, is there any other lighter way?)

like image 696
o0omycomputero0o Avatar asked Dec 17 '19 03:12

o0omycomputero0o


1 Answers

You can use

ng build --prod --output-hashing none

or only

ng build --prod

Ref link

  1. https://github.com/angular/angular-cli/issues/8344

  2. https://github.com/angular/angular-cli/issues/1833

like image 187
Tony Ngo Avatar answered Oct 02 '22 17:10

Tony Ngo