Login Register

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.

There is no feature in the

There is no feature in the build system to do that, but it sounds like a good idea. I filed ticket #5340 to track this request.

xdomain custom build has both regular .js and .xd.js files

I did a custom build with the following options:
optimize=shrinksafe copyTests=false loader=xdomain action=release
I notice that the release has .xd.js files which I need. It also has regular non-cross domain files .js.
The total size is over 20M and there are about 2000 files.
Do I have to keep both? If not, what can I do to remove the non-xd files? If I can, the size will be reduced in half.

Thanks.

Richard

You do not need to keep the

You do not need to keep the file .js files as long as there is a .xd.js file equivalent, and if you always configure your web app(s) to use xdomain loading.

Is there option in the

Is there option in the profile that I can stripe off the .js file and only keep the .xd.js files? Or I have to do manually after the build is done?

Thanks.

Sorry, there is no build

Sorry, there is no build option to do that. Feel free to fire an enhancement ticket at http://trac.dojotoolkit.org (use guest/guest login).