I'd like to globally configure the output dir of where assetic dumps my JS files. Currently, they always go to web/js/*
. I want to change this to web/js/compiled/*
.
It's possible to specify this at a per-file level: http://symfony.com/doc/2.0/cookbook/assetic/asset_management.html#dumping-asset-files
Can't seem to find a way to set this globally across my Symfony app. Any config parameter I'm missing?
UPDATE
Found an assetic config parameter called write_to
. Setting this in config.yml
causes the command line assetic:dump
to dump files to the new dir, but within twig files the asset_url
var still points to the original path.
read_from
option in the config would be what we're looking. However, I can't get that option to do anything. Regardless of what I set the read_from parameter to, my application uses the default path. – Trichinopolyoutput
param for eachjavascripts
block, but that's not at all ideal. – Monogeneticasset_url
for the cdn. Not ideal, but it does the job. – Trichinopoly