How can I prevent merge JS file
justinphan1992 opened this issue · 4 comments
justinphan1992 commented
Hi neilime.
Thank you to create nice tool to mannage the asset files. I have problem when turn on production mode the javascript file occurred error. Is there any way to turn off merge files just in javascript
neilime commented
There's no way to turn off mergin files for javascript at the moment. Maybe you can try to use an another javascript filter :
array(
'assets_bundle' => array(
'filters' => array(
\AssetsBundle\AssetFile\AssetFile::ASSET_JS => 'JsMinAssetFileFilter',
),
),
);
Tell me if it works for you
justinphan1992 commented
Thank for your response
I tried but didnt work.
neilime commented
Or you can try to disable the JavaScript filter :
array(
'assets_bundle' => array(
'filters' => array(
\AssetsBundle\AssetFile\AssetFile::ASSET_JS => new \Zend\Stdlib\ArrayUtils\MergeRemoveKey(),
),
),
);
neilime commented
Have you tried the previous solution ?