How to build a production version for browser?

How could I build a production version of my app to the browser?

ionic build --prod
βœ— You cannot run iOS unless you are on Mac OSX.

you have to add the platform ios first which will create the projct by doing

ionic platform add ios.

Then import the project into xcode on a mac and from there you can build.

I don’t want to develop for iOS.

A just want to create a PWA.

You can use npm run ionic:build --prod.

1 Like