javascript - Compressing Sencha Touch App -
i have created android app sencha touch 2 , phonegap, , .apk file more 8 mb extreme!
so trying find solution minimize size. found solution in sencha's documentation (http://docs-origin.sencha.com/cmd/3.1.2/#!/guide/native_packaging-section-cfg). following solution didn't work. running command -> sencha app build native generates error (http://pastebin.com/cql6xukx).
also running command ->sencha fs minify app.js app.minified.js gives error -> [err] null
i can't find other solution. please me find solution minify size of app?
hard tell based on error message what/where error is, if had guess you're missing comma somewhere. stack trace says:
[inf] completed compilation. [inf] processed remote file touch/sencha-touch.js [inf] processed local file app.js [err] c2000: rhino parse error (invalid property id => float: true,) -- unknown-file:7049176 [err] c2000: rhino parse error (syntax error => float: true,) -- unknown-file:7049177
cmd gets far enough compile of classes single file, barfs on minification.
so (again, guessing here) run code through jslint hunting syntax errors... maybe missed comma after "id" property , before "float" property.
sencha cmd way go... make sure 2 products (sencha touch , sencha cmd) using recent versions might run mismatched pair.
Comments
Post a Comment