Symfony2 assets versioning by file

前端 未结 4 862
长情又很酷
长情又很酷 2020-12-31 14:59

Question

Is it possible on Symfony2 use assets_version by file?

Background

We are using assets_version and assets_version_format to

4条回答
  •  轮回少年
    2020-12-31 15:30

    If you're trying to use the assets_version parameter with the javascripts or stylesheets helpers, you still need to use the asset helper as well.

    {% javascripts 'bundles/webapp/app.js'
                   'bundles/webapp/utils.js'
                   filter='?closure' %}
        
    {% endjavascripts %}
    

    It is not added to asset_url automatically (which is a good thing).

提交回复
热议问题