I wrote a small reader, which uses JSMin for minification of javascript files. I've written a blogpost[1] about this reader or you can get the source directly from [2].

Since I did not find a proper place for this reader just yet, I've put it online so you can download it.

Cheers,

Jeroen

[1]http://blog.jeroenreijn.com/2009/09/apache-cocoon-and-javascript.html
[2]http://people.apache.org/~jreijn/sources/java/JavaScriptMinifyReader.java

Jeroen Reijn wrote:
Graag gedaan! :-) I'll see if I can write a nice JSMin based reader on the way home by train today. It should not be that hard to implement.

Regards,

Jeroen

Lars Huttar wrote:
Jeroen,
Dank u wel for looking into this. I look forward to whatever code
examples you can find.

Re: compressing at build time, please see my reply to Kamal.

Regards,
Lars

On 9/9/2009 2:33 AM, Jeroen Reijn wrote:
Hi Lars,

I've been working with Wilfred on that project, but I'm not really sure
if I was the guy that wrote the component, which he talks about. However
 I have written something similar about 2 years ago.

The way I implemented it was by creating a reader. This reader then
reads the js van the filesystem and minifies it on the fly.
However this is quite nice, but it would be better if you could compress
it on build time. Next to that the yui compressor comes with it's own
version if rhino, which might conflict with the one that comes with
Cocoon. I'll try to find some code example.

Regards,

Jeroen

Lars Huttar wrote:
Hello,

Has anyone successfully configured Cocoon to do on-the-fly minification
of js and/or CSS?


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to