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 ( 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?


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

Once finished, build files are located in:

This blog post is good for more information about Ionic PWAs:

@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