Wednesday, October 25, 2017

Angular CLI– ng build --prod

Did you know that you can pass a “--prod” parameter when executing compiling your Angular code using “ng build”?

The "--prod” option also has a development counterpart “--dev”. They will set the following list of parameters:

Flag --dev --prod
--aot false true
--environment dev prod
--output-hashing media all
--sourcemaps true false
--extract-css false true
--named-chunks true false

More information:

No comments: