Skip to content
Browse files

Override wro.xml with dummy config to let asset fallthrough happen.

Don't use uglifyJs - it is too expensive.
  • Loading branch information...
1 parent 9af5986 commit 2f9c493c1a24689d327ee2ab1a158f32195a70dc @paulj paulj committed Mar 17, 2012
View
10 agent/src/main/packaging/WEB-INF/wro.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<groups xmlns="http://www.isdc.ro/wro"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.isdc.ro/wro wro.xsd">
+
+ <!-- We don't use any real groups, since assets have all been pre-compiled -->
+ <group name="dummy">
+ <js>/js/dummy.js</js>
+ </group>
+</groups>
View
2 agent/src/main/webapp/WEB-INF/web.xml
@@ -59,7 +59,7 @@
</init-param>
<init-param>
<param-name>com.sun.jersey.config.property.WebPageContentRegex</param-name>
- <param-value>/(|.*\.html|(images|less|js|css)/.*)</param-value>
+ <param-value>/(|.*\.html|(assets|images|less|js|css)/.*)</param-value>
</init-param>
</filter>
View
2 jst-packaging/src/main/java/net/lshift/diffa/assets/DiffaStandaloneWroManagerFactory.java
@@ -51,7 +51,7 @@ protected Properties createProperties() {
final Properties props = super.createProperties();
props.put("preProcessors", "jstTemplates,cssUrlRewriting,cssImport,semicolonAppender");
- props.put("postProcessors", "jsMin,lessCss,uglifyJs");
+ props.put("postProcessors", "jsMin,lessCss");
return props;
}

0 comments on commit 2f9c493

Please sign in to comment.
Something went wrong with that request. Please try again.