|
Project Information
Members
Featured
Downloads
Wiki pages
Links
|
Web Resource Optimizer for Java Free and Open Source Java project which brings together almost all the modern web tools: JsHint, CssLint, JsMin, Google Closure compressor, YUI Compressor, UglifyJs, Dojo Shrinksafe, Css Variables Support, JSON Compression, Less, Sass, CoffeeScript and much more. In the same time, the aim is to keep it as simple as possible and as extensible as possible in order to be easily adapted to application specific needs. Easily improve your web application loading time. Keep project web resources (js & css) well organized, merge & minify them at run-time (using a simple filter) or build-time (using maven plugin) and has a dozen of features you may find useful when dealing with web resources. Code samplesResource resource = Resource.valueOf("script.coffee", ResourceType.JS);
Reader reader = new FileReader("path/to/script.coffee");
Writer writer = new FileWriter("path/to/script.js");
//Transforming a coffee script file into a javascript file
new CoffeeScriptProcessor().process(resource, reader, writer);
//Using UglifyJs
new UglifyJsProcessor().process(resource, reader, writer);
//Using BeautifyJs
new BeautifyJsProcessor().process(resource, reader, writer);
//Using Less
new LessCssProcessor().process(resource, reader, writer);
//Using Sass
new SassCssProcessor().process(resource, reader, writer);Read more about how processors can be reused by your application. Latest News20 February 2012 - A new stable release (wro4j-1.4.4) is ready. For a complete list of issues, see: Issues page or Visit ReleaseNotes page. Docs
Community
Issueshttp://code.google.com/p/wro4j/issues/list Search for existing issues, add a comment about your problem, and star the issue to vote for it. Click the 'New issue' link to create a new issue. Want to contribute?
|