-
Notifications
You must be signed in to change notification settings - Fork 125
filters
Mark Story edited this page Mar 18, 2023
·
43 revisions
Asset Compress comes with several built-in filters. Filters are used to transform assets before and/or after they are concatenated together. Filters allow you to connect pre-processors like CoffeeScript, or LessCSS, as well as add minifiers like YUICompressor, or UglifyJs into your application. Filters are configured in the Configuration file.
Compression filters e.g. CssMinFilter, JsMinFilter etc. will only compress the output when debug
is off in your application. Update config/app.php
or config/app_local.php
and use bin/cake asset_compress build
to test compression filters.
AssetCompress inherits its filter catalog from mini-asset. See the mini-asset filter documentation for the available filters and their options.