更新时间:2023-12-03 07:57:16
我遇到了同样的问题,我只是尝试使用以下作为解决方法.到目前为止似乎有效.
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 %}
注意任何输出的省略,这意味着模板上没有显示任何内容.当我运行 assetic:dump
时,文件被复制到所需的位置,并且 css 按预期包含工作.
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.