Compiling app for PWA production environment

I want to use Ionic to create a PWA website. This website will be used on both desktop and mobile devices, and hosted on IIS (pure web - no “native” app).

In the deploying (https://ionicframework.com/docs/intro/deploying/) section of the documentation I only see it’s discussed about building for iOS and Android.

How can I build for PWA (just web) for production using AOT compiling?
How can I set the build location?

Thanks

Building a production PWA:
npm run ionic:build -- --prod

Once finished, build files are located in:
/www

This blog post is good for more information about Ionic PWAs:
https://blog.ionicframework.com/how-to-make-pwas-with-ionic/

@ccdex_chris there is a typo in your cmd -- -- :wink:

 npm run ionic:build --prod

except that, of course agree with your answer :slight_smile:

p.s.: two interesting tutorials about this subject