Questions tagged [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

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.

Source: GitHub (wro4j)

87 questions
1
vote
0 answers

How to use jshintmojo with surefire plugin?

I want to create a surefire report for jshint errors. Is there a tag I need to use in the configuration? I tried the following but it did not work com.cj.jshintmojo jshint-maven-plugin
ALUMOM
  • 83
  • 1
  • 2
  • 8
1
vote
1 answer

Why is the YUIJsCompressorProcessor class not included in either the core or extensions jars for wro4j?

I would like to incorporate wro4j into my grails project. I have everything setup, but I'm getting a JSMin UnterminatedStringLiteralException when the minifier attempts to compress the OpenLayers.js file I'm using. So I figured it would be worth…
mblPrgr
  • 139
  • 1
  • 2
  • 11
1
vote
1 answer

Creating a dynamic javascript bundle with wro4j

Am trying to create this infrastructure using wro4j, with which a user can decide which js files to bundle by just editing the template and not touching any java code. So, some request like http…
sanz
  • 1,069
  • 1
  • 10
  • 26
1
vote
1 answer

Wro4j image to datauri conversion in build-time

is it possible to convert via wro4j maven plugin imported into css image to uridata in build time? I see on their wiki run-time solution but I would like to have static files already converted. Or maybe somebody knows another plugin which can do…
Daniel Engel
  • 53
  • 1
  • 5
1
vote
0 answers

Jetty ConcatServlet to handle filter generated content

I try to use jetty's ConcatServlet to concatenate javascript generated from my own servlet and javascript generated by wro4j WroFilter. It seems concatenation doesn't work, regardless the javadoc of ConcatServlet that states that it can be used to…
Tamas
  • 3,254
  • 4
  • 29
  • 51
1
vote
1 answer

ProcessorProvider not getting picked up by ServiceRegistry for Build-Time Solution

I've added src/main/resources/META-INF/services/ro.isdc.wro.model.resource.processor.support.ProcessorProvider to my maven project. The file contains one line which has the fully qualified class name of my custom ProcessorProvider. Everything works…
jlb
  • 19,090
  • 8
  • 34
  • 65
1
vote
1 answer

wro4j with orange wro4j-taglib - sometimes loading wrong group?

We're using wro4j with the Orange wr4j-taglib, and sometimes when we deploy its loading the same resource twice instead of two different ones, but not on all the servers. Below is the snippet from our groups in wro.xml. We're using the build time…
gusterlover6
  • 471
  • 5
  • 10
1
vote
1 answer

Custom wro4j plugin for Scala's Simple Build Tool

I'm in the process of creating my own wro4j plugin for SBT as my project has some special requirements not achievable with xsbt-wro4j-plugin directly. I checked the source code of xsbt-wro4j-plugin (here) and also the wro4j API documentation to gain…
Athelionas
  • 181
  • 3
  • 12
1
vote
1 answer

Using The LessCssProcessor only on a certain group of files

I'm trying to implement a LessCssProcessor in my maven project. However, the project I'm trying to use the processor on has files with CSS errors, causing the css files not to generate. Is it possible to configure the processor or the project so…
Joe Crawley
  • 725
  • 6
  • 18
1
vote
1 answer

LessCssProcessor import and declaration for wro4j

I'm trying to use a LessCss processor in my maven project using wro4j version 1.45. I use this import statement and I get an error at build time saying it isn't recognized. import ro.isdc.wro.extensions.processor.support.less.LessCssProcessor; All…
Joe Crawley
  • 725
  • 6
  • 18
1
vote
1 answer

How to obtain wro4j`s WroModel in a Spring application

I want to obtain the wro4j ro.isdc.wro.model.WroModel in a Spring application that use wro4j. But I always get a ro.isdc.wro.WroRuntimeException: No context associated with CURRENT request cycle! Exception when I try to build create the…
Ralph
  • 118,862
  • 56
  • 287
  • 383
1
vote
1 answer

WRO4J: Spring mapping WRO4J resources facing issue

We are using WRO4J for our application to generate optimized web resources. I need to work this with spring mvc:resources. Now if do the configuration its failing to load the resources. My configuration given below. here /img/, /admin/img/ are…
Vijay Mohan
  • 1,056
  • 14
  • 34
1
vote
1 answer

Is it possible to use wro4j to parse files and generate 'sass' versions of css without applying any bundling?

We are trying to run a SASS parser over our CSS files as part of our Maven build, but do not want them to be bundled together at the same time during this phase of the Maven life cycle. However, I cannot see a simple way of using wro4J to do this…
Caroline
  • 1,582
  • 3
  • 16
  • 30
1
vote
1 answer

Why do I get "Bad option: 'unused'" when I try to apply the 'unused' option in the wro4j jshint plugin (v1.4.7)?

All the other options I need to use are working nicely but when I add the 'unused' option, I get a complaint when I try…
Caroline
  • 1,582
  • 3
  • 16
  • 30
1
vote
1 answer

How can I configure standardised indentation using JsHint and the wro4j plugin?

I would like to force 4 spaces as the default and required indentation for my whole js codebase. I have managed to the jshint wro4j plugin to work and obey options: browser,newcap,noarg,nonew,undef,trailing However, for…
Caroline
  • 1,582
  • 3
  • 16
  • 30