mcfly-io / generator-mcfly

A Yeoman generator for scaffolding an application using angular, browserify, ionic and famous
323 stars 43 forks source link

How to get production version? #311

Closed AzureVoteWise closed 8 years ago

AzureVoteWise commented 8 years ago

How do I get a production version? I'm running gulp dist, which is "working" in the console, bit the only folder in dist/app is the dev folder.

jskrzypek commented 8 years ago

Sorry for the delayed reply, the answer is here: https://github.com/mcfly-io/generator-mcfly#cordova-applications

Basically you have to change the dist mode to prod using the mode flag

gulp dist -m prod
# or
gulp dist --mode=prod

The default mode is dev because most of the time you're not building for prod.