mpinvidio
mpinvidio

Reputation: 509

sencha app build native without minify JS

I want be able to build a native app, but without minifying the JS so I can debug it later confortably.

Currently I'm executing:

sencha app build native

How can I be able to build without minifying JS files? Thanks

Upvotes: 10

Views: 2743

Answers (2)

CasualBinary
CasualBinary

Reputation: 96

For native build, you can only have testing option after upgrade to Sencha CMD 5.x, refer to

http://docs.sencha.com/cmd/5.x/cmd_upgrade_guide.html

Under Cordova / PhoneGap

"These build profiles ensure that all of the “sencha app build” command variations are equivalent to previous releases. You will notice, however, that “native” is now a build profile instead of an environment (like “testing” or “production”). This means you can now do “sencha app build native testing” which was previously not possible."

So, the command should be

sencha app build native testing

Upvotes: 8

Zistoloen
Zistoloen

Reputation: 879

You need to use this command line instead:

sencha app build testing

That way, all JavaScript source files are bundled but not minified; and you could debug easily.

See Sencha CMD 4 documentation for more details.

Upvotes: 6

Related Questions