Angular-CLI v6: --no-aot build option equivalent

To do this from the command line, use the following options along with the --prod option.

--aot=false --build-optimizer=false

The complete command:

ng b --prod --aot=false --build-optimizer=false

If you would rather avoid doing this on the command line each time, you can change the production build options in the angular.json.

At the following path in the file

projects/your-project/achitect/build/configurations/production

Change the aot and buildOptimizer options to false. Then, you can simply run ng b --prod from the command line, and you will get a production build that doesn't include the aot and build-optimizer options.

The --prod build option is deprecated. Below in the updated command.

ng b -c production --aot=false --build-optimizer=false

You can try this:

ng build --prod --aot=false --build-optimizer=false