View Full Version : [FIXED] Stripping <debug>

23 Oct 2012, 8:24 PM
I generated an ExtJS app with CMD v3.0.0.201 and found that by default a production build didn't strip <debug> directives.

I want the debug=false option to be part of the project config so they are always stripped, is there a clean way to do this in sencha.cfg? Shouldn't it be the default behavior to strip <debug> code in production builds?

I thought this might do it in .sencha/app/build-impl.xml:

<target name="-page">
<!-- initialize the build.dir parameter if it hasn't been already -->
<local name="build.dir"/>
<property name="build.dir" location="${workspace.build.dir}"/>

<!-- compile the page -->

and it works for class files but it doesn't seem to effect app.js

24 Oct 2012, 11:50 PM
Thanks for the report! I have opened a bug in our bug tracker.

24 Oct 2012, 11:51 PM
Can you be more specific about what exactly worked and did not? The build produces all-classes.js in the build folder ... it does not effect your app.js file in the app (source) folder.

27 Oct 2012, 9:03 AM
With -debug=false injected into the sencha compile command, <debug> directives were stripped from all files pulled in via classPath but app.js gets compiled into all-classes with its <debug> sections intact, even though the default touch app.js comes with a <debug> section