-
16 Feb 2013 4:16 PM #1
[FR] Hooks into the compilation process
[FR] Hooks into the compilation process
When building an app, we already have pre and post hooks for building the "page" and the css, but it would be useful to be able to intervene during the compilation process since it includes several steps.
I'd love to be able to use my own pre-processor to get rid of console.log calls per example. The most efficient way to do this would be after the file is concatenated, just before the actual compilation process.
Olivier - interfaSys
Developing custom solutions for BlackBerry 10 using Sencha Touch.
-
19 Feb 2013 1:54 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
Thanks for the report! I have opened a feature request in our bug tracker.
-
20 Feb 2013 6:24 AM #3
While we wait, this might work for some of you. Edit your build-impl.xml and add this:
Code:<target name="-after-page"> <if> <equals arg1="${args.environment}" arg2="package"/> <then> <replaceregexp match="console.log\([^()][^;|^}]*\)" replace="" flags="gis" file="${workspace.build.dir}/package/app.js"/> </then> </if> </target>Olivier - interfaSys
Developing custom solutions for BlackBerry 10 using Sencha Touch.
You found a bug! We've classified it as
SDKTOOLS-335
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote