AngularCli: disable warning

Is there a way to disable minimization in AngularCli?

After running the command, ng build --prodI need to have all the .js files in the dist folder, separate and legible.

+6
source share
2 answers

To get simple and separate and non-minified js files, you just need to compile them with typescript ( tsc) into a directory dist.

No need to use cli assembly. By design, the Angular CLI merges all javascript files when created.

From cli create documentation :

, --prod UglifyJS.

+1
ng build --build-optimizer=false
0

Source: https://habr.com/ru/post/1016693/


All Articles