It should be possible to achieve something like what we want with a configuration like: https://github.com/symfony/AsseticBundle/blob/master/DependencyInjection/Configuration.php#L89-99