I want assetic to output compressed js and css to something like this:
v2.3.1/css/whatever.css
Currently this is how I dump my css and js for production: $ php app/console assetic:dump --env=prod --no-debug. But they get dumped into css/ and js/, without the version.
I have read this but it seems to refer to images only, not css/js.
An important reason for doing this is for cache busting/invalidation.
Yes, known issue… In our production workflow we ended up with such block in
bin/vendorsscript:As you can see, we defined our console command, which installs assets into web folder after installing and dumping of Symfony’s assets. In the
MyVendorCommandscript we do something like this: