Sometimes you need to test the build with production mode. But you don’t want to deploy to somewhere.
So just run it on the local folder. With this help
1. Install the server
// http-server is a simple, zero-configuration command-line static HTTP server npm install --global http-server
2. Build your code as Production mode
ionic build --prod
3. Run & enjoy
http-server C:\path\to\your\folder\www