springuser2014 / wro4j

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

Minimize without merge for maven plugin #139

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently all resources inside a group are merged together. There should be a 
way to minimize resources without merging them. It could look like this:

<group name="aGroup" nomerge="true">
  ...
</group>

As a result of processing, there will be minified resources contained in the 
group instead of a single "aGroup.<extension>" minimized file.

This feature makes sense for build-time (Maven or similar) solution only. 

Original issue reported on code.google.com by alex.obj...@gmail.com on 30 Oct 2010 at 9:14

GoogleCodeExporter commented 9 years ago

Original comment by alex.obj...@gmail.com on 7 Mar 2011 at 8:33

GoogleCodeExporter commented 9 years ago

Original comment by alex.obj...@gmail.com on 21 Mar 2011 at 7:20

GoogleCodeExporter commented 9 years ago
I prefer not to use a wro.xml at all, and just process all the resources one by 
one. Bundling can be done with sass/less or simple cssimport declarations.

For javascript this is more difficult, but with AMD style dependencies (like 
require.js) you can define your dependencies in js and not have this wro.xml 
file.

Original comment by tje...@gmail.com on 5 Feb 2013 at 4:03

GoogleCodeExporter commented 9 years ago
There should be a way to define what exactly you want to minimize, or at least 
you should have a convention. 

The convention used by wro4j, is a model (using XML, Groovy or JSON DSL) which 
describes the resources to be minimized. If you don't find this convention 
useful, you can easily extend the WroModelFactory and build the model using you 
custom (proprietary) convention: http://code.google.com/p/wro4j/wiki/WroModel

Please, describe what is your use-case or what convention are you looking for? 
This could be a starting point for a discussion for a new feature to be 
implemented.

Original comment by alex.obj...@gmail.com on 5 Feb 2013 at 4:29

GoogleCodeExporter commented 9 years ago

Original comment by alex.obj...@gmail.com on 3 Dec 2013 at 8:30