Is there a De-aggregate tool For Debug Mode?

160 views
Skip to first unread message

John Gordon

unread,
Mar 23, 2012, 9:46:33 AM3/23/12
to wr...@googlegroups.com
I'm appreciating wro4j, but have one issue I'm trying to resolve:  de-aggregating when in debug mode.  It's hard to find the code you're working on when its in the aggregated javascript file wro4j creates.  Has anyone written a utility yet that will read the wro.xml file and dynamically spit out the javascript files individually?

I've found this web entry for doing it via a javascript on the client-side, but it has some issues (see  my comments on the page for details).  A server-side solution would be the most elegant.


Thanks!

Alex Objelean

unread,
Mar 23, 2012, 9:51:29 AM3/23/12
to wr...@googlegroups.com
Hi John,

there is no such tool yet, though there is an open issue for this.
I think switching minimization should help you with this kind of problem, until the de-aggregation feature is available.
You can switch minimization off by adding the following param to the query: ?minimize=false 

Cheers,
Alex

--
You received this message because you are subscribed to the Google Groups "wro4j" group.
To view this discussion on the web visit https://groups.google.com/d/msg/wro4j/-/3vAUZaBGOXAJ.
To post to this group, send email to wr...@googlegroups.com.
To unsubscribe from this group, send email to wro4j+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wro4j?hl=en.

Dmitry Erman

unread,
Mar 23, 2012, 12:10:38 PM3/23/12
to wr...@googlegroups.com
While this may not help you right this minute, Google Chrome and FF will be integrating "Source Maps" in their upcoming releases (not sure which one). You can see it working in Chrome Canary, the nightly build version. Source Maps allows you to specify the original versions of your CSS and JS files that can be loaded when you trigger debug mode through an HTTP Header or browser setting. This will do exactly what you're looking for without having to setup additional groups in wro4j.

Reference links on this topic:

John Gordon

unread,
Mar 30, 2012, 9:43:35 AM3/30/12
to wr...@googlegroups.com

Thanks for the info.  Looks promising!

John
Reply all
Reply to author
Forward
0 new messages