Open GoogleCodeExporter opened 8 years ago
Disabling cssUrlRewritingProcessor is easy. Just remove this preProcessor from
the list of preProcessor. This can be achieved either extending the
WroManagerFactory and overriding the ProcessorsFactory implementation, or using
ro.isdc.wro.maven.plugin.manager.factory.ConfigurableWroManagerFactory and
configuring processors in a properties file (wro.properties), example:
preProcessors=cssImport,jsMin,cssMin
postProcessors=lessCss,coffeeScript
You can find more details about this here:
http://code.google.com/p/wro4j/wiki/MavenPlugin
The cssDestinationFolder is not used to compute the rewriting url, because it
can be outside of the webapp folder, making it impossible to compute. However,
it does make sense to take it into account when cssDestinationFolder is
relative to webapp. This is something I could fix later as part of this issue.
By default the cssTargetFolder is located in a subfolder of webapp. Since you
changed it to the root webapp folder, it does not work as expected.
You have two options:
1) Change cssTargetFolder to a subfolder of webapp
2) Remove cssUrlRewritingProcessor (using custom WroManagerFactory or
ConfigurableWroManagerFactory as described above).
Original comment by alex.obj...@gmail.com
on 17 Sep 2013 at 6:52
Actually the cssTargetFolder should be taken into account. Could you debug the
Wro4jMojo#computeAggregatedFolderPath method?
Use "mvnDebug wro4j:run"
What do you see?
If debugging doesn't help, creating a sample project I could use to debug the
problem would help to fix this problem faster.
Thanks,
Alex
Original comment by alex.obj...@gmail.com
on 18 Sep 2013 at 7:29
Original issue reported on code.google.com by
andr...@weightpoint.se
on 16 Sep 2013 at 8:16