mcfly-io / generator-mcfly

A Yeoman generator for scaffolding an application using angular, browserify, ionic and famous

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to get production version?

AzureVoteWise opened this issue · comments

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.

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.