This repository has been archived by the owner on Oct 10, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
FAQ
neilime edited this page Aug 30, 2016
·
3 revisions
In the assets_bundle configuration, you can disabled filters for image :
'filters' => array(
'png' => new \Zend\Stdlib\ArrayUtils\MergeRemoveKey(),
'jpg' => new \Zend\Stdlib\ArrayUtils\MergeRemoveKey(), 'jpeg' => new \Zend\Stdlib\ArrayUtils\MergeRemoveKey(),
'gif' => new \Zend\Stdlib\ArrayUtils\MergeRemoveKey(),
),
In the assets_bundle configuration, you can define which js filter you want to use in configuration
'filters' => array(
\AssetsBundle\AssetFile\AssetFile::ASSET_JS => 'JsMinAssetFileFilter',
),
),
Every media that are called into you stylesheets must be cached, you should define them the assets_bundle configuration :
'assets' => array(
'media' => array(
'/my/file/path.jpeg',
),
),