-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to ionic serve --prod? #26
Comments
I'd like to know how to do this too? Thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
As the title says,, I'm trying to serve my environment locally with the prod settings; Doesn't work out of the box. After following the instructions on your root .md file, I've done this:
package.json
Add an npm run script:
config/webpack.config.js
Update:
Doesn't seem quite right, even though the variable "prod" is shown to be properly selected via the console.log as I
npm run serve:prod:win
, it's still the dev file that's in use.N.B. I don't quite understand webpack, so don't consider this an educated guess :-)
How would you approach this?
The text was updated successfully, but these errors were encountered: