ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

Ionic serve in prod mode

Open ghost opened this issue 10 years ago • 3 comments

Can we have something like this added to the cli? ionic serve --prod

This would be a huge help for testing the app when you have different codes for prod and dev. One example can be having different environment variables set up.

Right now the only way to run the app in prod mode is to run it on a device which is very time consuming at least.

ghost avatar Nov 04 '16 15:11 ghost

It's not possible right now: https://github.com/driftyco/ionic-app-scripts/issues/709

maxflex avatar Feb 04 '17 16:02 maxflex

Is there any other alternative to get an optimized build for production deployment of web-app?

jpradeep2003 avatar Apr 16 '17 13:04 jpradeep2003

After reading this: https://github.com/driftyco/ionic-app-scripts/issues/709#issuecomment-277454896 I'm closing this for now.

ghost avatar May 11 '17 14:05 ghost