0
我正在使用Symfony2和Assetic。Assetic不合並bootstrap.css和bootstrap-responsive.css
資產在dev(debug = true)上正常運行,但是當我運行prod(debug = false)轉儲時,它沒有合併bootstrap.css和bootstrap-responsive.css。
有什麼想法? TKX
我正在使用Symfony2和Assetic。Assetic不合並bootstrap.css和bootstrap-responsive.css
資產在dev(debug = true)上正常運行,但是當我運行prod(debug = false)轉儲時,它沒有合併bootstrap.css和bootstrap-responsive.css。
有什麼想法? TKX
爲了解決臨時問題,我需要把bootstrap.css樹枝({%樣式表)以外,例如:
/* Instead of: */
{% stylesheets 'bundles/foobar/css/*' %}
<link rel="stylesheet" href="{{ asset_url }}">
{% endstylesheets %}
/* I am doing: */
<link rel="stylesheet" href='/bundles/foobar/css/bootstrap.css'>
{% stylesheets
'bundles/foobar/css/bootstrap-responsive.css'
'bundles/foobar/css/chosen.css'
'bundles/foobar/css/custom.css'
%}
<link rel="stylesheet" href="{{ asset_url }}">
{% endstylesheets %}