lltyk/tapestry-wro4j — comment on commit b2593197c97908126c8f6c41ab86e6996bea752b
File: src/main/java/com/github/lltyk/wro4j/services/CoffeeScriptJsTransformer.java line 44
By alexo:

Actually the purpose of processor is not to create resource, rather to "process" or "transform" a resource.

Most of the processors, with a couple of exceptions, do not depend on Context/Configuration. I am planning to make it possible to make processor wro4j agnostic (there is an open issue for next release 1.4.3).

As far as I know, GoogleClosureCompressorProcessor doesn't require Context/Configuration set up, therefore you can use it without extra coding.

Enabling compression is a decision to be made by the processors client, rather than by the processor itself. There is a specialized annotation which can be useful to identify if a processor does a compression or not (called @Minimized). As a result, you can control the compression configuration easily, without any extra configuration by applying or not a processor based on your custom logic.

Regarding the reservedNames for UglifyJs, I don't think it is supported currently, but I can add it as a result of your feature request.

Please, let me know if you have any suggestions or questions.

Cheers,
Alex