On Mon, 31 Oct 2011 15:51:14 +0100, Jochen Kemnade <jochen.kemn...@crossgate.com> wrote:
Hi, after playing with the new Tapestry 5.3 features, an idea came to my mind. I'd like to "abuse" the ResourceMinimizer to remove debug code when running in production mode, i.e. calls to Tapestry.debug, T5.console.debug and the like. ... Yuicompressor does not support features like that, so I wonder if there's a way to get around having to write horrible regular expressions or parser code. Any ideas? :-)
Perhaps you could use Google closure compiler and its preprocessor features? http://stackoverflow.com/questions/2934509/exclude-debug-javascript-code-during-minification I have no experience with the closure compiler, but it's written in Java so should be possible to integrate with a Tapestry app. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org