I could not find much information about this.
I want to compile all css (and js) files into the following:
css/all-c498dsfbc.css
Now I can get only this data:
css/all.css css/c498dsfbc.css css/all.css?v=123
The first sucks because it has no caching at all.
The second generates a hash that can be used to iterate over the cache, but for some reason it does not change when I change something in my .css files and then run this again:
$ php app/console assetic:dump --env=prod --no-debug
The third sucks because I need to change the version manually, as described here: http://symfony.com/doc/current/reference/configuration/framework.html#ref-framework-assets-version . Also, I donβt think that using queries for this is a good idea (I think some browsers or CDNs may not like this). It would be much better if the file name were changed: "all-c498dsfbc.css". Here's how to do it in Rails, if I remember correctly.
Any thoughts?
EDIT
It seems that this function is missing, I can not believe in it: https://github.com/kriswallsmith/assetic/pull/190
source share