How to add specific files to assetic?

前端 未结 4 903
滥情空心
滥情空心 2021-02-14 04:53

I have my custom resources directory for my bundle where there are some files:

/longpathtoSymfony/src/MyOwn/Bundle/MyOwnBundle/Resources/public
|-- bootstrap
|           


        
4条回答
  •  逝去的感伤
    2021-02-14 05:23

    I had the same problem and I just tried using the following as a workaround. Seems to work so far.

    {% stylesheets
        output='assets/fonts/glyphicons-halflings-regular.ttf'
        'bundles/bootstrap/fonts/glyphicons-halflings-regular.ttf'
    %}{% endstylesheets %}
    

    Notice the omission of any output which means nothing shows up on the template. When I run assetic:dump the files are copied over to the desired location and the css includes work as expected.

提交回复
热议问题