Does anyone know how to remove compression of javascript file in sencha cmd? I want that my production app.js file what fully readable.
And I want to configure this in my app.json if possible.
I did this:
/**
* Settings specific to production builds.
*/
"production": {
"compressor": null, // compressor null
"output": {
"js": {
"optimize": false, // optimize false
},
"appCache": {
"enable": false,
"path": "../cache.appcache"
}
},
"loader": {
"cache": "${build.timestamp}"
},
"cache": {
"enable": false
}
}
But whereas the compressor option work, at the end my file is still "compressed" (not minified but still in one line).
I try the optimize method in the ideal situation, I would like all Sencha Cmd optimization to be perform except to shrink everything in one line...
If somebody know.
Thanks in advance!
thanks to @bnz, the proposed answer was not fully right but it helps me found the solution.
So, to disable the last compression of the app.js
file during the build process, you have to go to your <appFolder>/.sencha/app/production.properties
and this directive:
enable.resource.compression=false
I did not found yet how to set this in the app.json