npm run build --prod

the above command works great for me, i've heard also that these commands work well.

ionic cordova add platform browser

ionic build browser --prod --release

i found this post really helpful also about these three commands:

https://stackoverflow.com/questions/44195402/ionic-3-publish-app-as-pwa-progressive-web-app