To compress one or more dciertories (every js and css in resources and src/main/webapp) using a maven script I use :mvn net.sf.alchim:yuicompressor-maven-plugin:compressThis the plugin/mojo I create, I wait Julien agrement before publish it (after 1 day is need to be present on maven central repo).
We found a bug today with the safety of the coismepsron. YUI Compressor doesn't understand/respect break LABEL; Here's an example from our code that gets compressed into an incorrect result.Raw Code:AjxTimezone.getRule = function(clientId, tz) { var rule = AjxTimezone._CLIENT2RULE[clientId]; if (!rule) { // try to find the rule treating the clientId as the serverId clientId = AjxTimezone._SERVER2CLIENT[clientId]; rule = AjxTimezone._CLIENT2RULE[clientId]; } if (!rule && tz) { var names = [ "standard", "daylight" ]; var rules = tz.daylight ? AjxTimezone.DAYLIGHT_RULES : AjxTimezone.STANDARD_RULES; for (var i = 0; i