When using Ionic 3 running
npm run build does not do AOT compilation and running
ionic-app-scripts build --prod also doesnt work as it isnt installed globally. It requires modifying your package.json to add to the scripts section a line of:
"prod": "ionic-app-scripts build --prod",
Then you can run:
> npm run prod
This will achieve a nicely optimized set of assets in the www folder that can be distributed as a web app.
But, this isn't obvious to new users.
Could we get a production build option like this added by default to new projects and documented?