springuser2014 / wro4j

Automatically exported from code.google.com/p/wro4j
0 stars 0 forks source link

Prevent specific files from being compressed/minified #158

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Reported by Brian:

"A few of the libraries that we use package pre-minified versions of 
their libraries.  It would be cool if we could specify/indicate this 
somehow in the wro.xml file so that those files would be excluded from 
the compression/minification process (especially since some of them 
seem to have issues when run through the compression process).  We 
still would like these minified files to be included in the 
concatenated output, but there is no need for the files to be 
compressed."

Solution:

Allow using the minimize="false" attribute on each resource to inform wro4j to 
skip minimization for that specific resource when applying preprocessors. 

Original issue reported on code.google.com by alex.obj...@gmail.com on 31 Dec 2010 at 9:09

GoogleCodeExporter commented 9 years ago
Fixed in latest 1.3.x branch (and 1.4.x) 
Each resource (css or js) now will accept optional minimize attribute which 
will allow turning minimization off (on is by default).

Original comment by alex.obj...@gmail.com on 9 Jan 2011 at 10:39