wro4j

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.

Github星跟蹤圖

Web Resource Optimizer for Java

Join the chat at https://gitter.im/wro4j/wro4j
Build Status
Coverage Status
Maven Central
Stories in Ready

wro4j is a free and Open Source Java project which will help you to easily improve your web application page loading time. It can help you to keep your static 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.

Getting Started

In order to get started with wro4j, you have to follow only 3 simple steps.

Step 1: Add WroFilter to web.xml

<filter>
	<filter-name>WebResourceOptimizer</filter-name>
	<filter-class>ro.isdc.wro.http.WroFilter</filter-class>
</filter>
		 
<filter-mapping>
	<filter-name>WebResourceOptimizer</filter-name>
	<url-pattern>/wro/*</url-pattern>
</filter-mapping>

Step 2: Create wro.xml

<groups xmlns="http://www.isdc.ro/wro">
	<group name="all">
		<css>/asset/*.css</css>
		<js>/asset/*.js</js>
	</group>
</groups> 		

Step 3: Use optimized resources

<html>
  <head>
	<title>Web Page using wro4j</title>
	<link rel="stylesheet" type="text/css" href="/wro/all.css" />
	<script type="text/javascript" src="/wro/all.js"/>
  </head>
<body>

</body>
</html>		

Documentation

The documentation for this project is located here

Issues

Found a bug? Report it to the issue tracker

Feedback

If you have any questions or suggestions, please feel free to post a comment to the discussion group

Follow me on Twitter.

License

This project is available under the Apache License, Version 2.0.

主要指標

概覽
名稱與所有者wro4j/wro4j
主編程語言Java
編程語言Java (語言數: 9)
平台
許可證Apache License 2.0
所有者活动
創建於2015-03-24 22:21:00
推送於2025-07-12 09:16:51
最后一次提交2024-10-30 21:34:18
發布數56
最新版本名稱v2.1.1 (發布於 )
第一版名稱v1.2.0-rc1 (發布於 )
用户参与
星數485
關注者數31
派生數108
提交數4.1k
已啟用問題?
問題數1098
打開的問題數261
拉請求數63
打開的拉請求數2
關閉的拉請求數16
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?