Right now when I'm running our application I check djConfig.isDebug using a global function and then depending on the boolean returned I console.debug messages out. Is there a way to extend console.debug or console to not fire out messages unless isDebug is true?
debug
The console and package system
I was just wondering if there are any configuration switches regarding how the console works? When I am developing a product, it is great to have all the console functionality. However, in a released product, I would like to turn off any console messages. In fact, it would be great to have an option to cut out any calls to the console as part of the package system.
Is there any way to control this, or has any thought been given to this subject?
Thanks.
Custom Dojo Build question
We know that ShrinkSafe can remove comments from code. During development I use a lot of
console.debug statements in place of alert() statements.
I noticed, however, that the dojo build script does not strip the code of
"console.debug" or any console statements for that matter.
Since I have a lot of these, I'm sure I can make my build even more compact if I have them removed.
Is there a way I can do that? Maybe I'm missing a flag that I need to pass to the build.sh script?
Thank you.
