google-code-export / wro4j

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

OutputNamingStrategy could add hash to .html files (for web components elements) #890

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This is feature request.

It would be great, if wro4j could rename .html files to. So we could use it for 
managing web components elements versions.

Example:
my-custom-element.html -> my-custom-element-#hash.html

Right now, the best way to serve this elements, is to vulcanize them. But when 
HTTP/2 is finished, elements will be served in separate files and tool for 
managing versions/caches will be needed.

Original issue reported on code.google.com by PavelCib...@gmail.com on 28 Aug 2014 at 11:59

GoogleCodeExporter commented 9 years ago
The wro4j handles only css and js resources (or other types which eventually 
becomes css or js, like coffee, less, sass, etc). I don't understand how that 
would fit with your feature request.

Original comment by alex.obj...@gmail.com on 28 Aug 2014 at 12:22

GoogleCodeExporter commented 9 years ago
I've been looking for some way, to add hashes to html files names. And I have 
good experience with this feature in wro4j. 

What about expanding scope of wro4j. It could rename html files too with 
already implemented code. Maybe add some html minifier in the future.

I understand that, if wro4j would stay css/jc only, that this is out of the 
scope.

Thanks for replay.

Original comment by PavelCib...@gmail.com on 28 Aug 2014 at 12:48

GoogleCodeExporter commented 9 years ago
You can definitely reuse the NamingStrategy and its implementations to achieve 
your desired functionality. The only thing is that there is no yet out of the  
box support for this. 

If you can come up with an useful implementation, feel free to share and it 
will be included in one of the next releases.

Original comment by alex.obj...@gmail.com on 28 Aug 2014 at 12:50