dev-master
9999999-dev https://github.com/wake/Twig-Assetic-FixerFixes the issue that `debug mode` & `combine false` not work when using Twig with Assetic.
MIT
The Requires
by Wake Liu
twig assetic
Fixes the issue that `debug mode` & `combine false` not work when using Twig with Assetic.
Twig-Assetic-Fixer try to fix the issue: The debug = true
, combine = false
options not work and asset files always combined when using Twig with Assetic., (*1)
Install by Composer, (*2)
"require": { "wake/Twig-Assetic-Fixer": "*" }
Check last section of Assetic#Twig, replace, (*3)
``` php use Assetic\Extension\Twig\TwigFormulaLoader;, (*4)
with ``` php use TwigAsseticFixer\TwigFormulaLoader;
如果你正好在使用 Twig + Assetic 並且遇到 debug = true 或 combine = false 時,檔案依然合併為一個的問題,那麼此修正檔或許可以幫助你。, (*5)
透過 Composer 安裝, (*6)
"require": { "wake/Twig-Assetic-Fixer": "*" }
參考 Assetic#Twig,最下方有提到 These assets need to be written to the web directory so these URLs don't return 404 errors.
,請將原本, (*7)
``` php use Assetic\Extension\Twig\TwigFormulaLoader;, (*8)
改換成 ``` php use TwigAsseticFixer\TwigFormulaLoader;
有任何疑問或需要協助的歡迎開 issue :smirk:, (*9)
Fixes the issue that `debug mode` & `combine false` not work when using Twig with Assetic.
MIT
twig assetic