zacoza / assetic-filters
Installs: 86
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 2
Open Issues: 0
pkg:composer/zacoza/assetic-filters
Requires
- php: >=5.3.0
- kriswallsmith/assetic: 1.2.*@dev
This package is not auto-updated.
Last update: 2025-11-04 07:12:16 UTC
README
AutoprefixerFilter
See autoprefixer
use ZaCoZa\Assetic\Filter\AutoprefixerFilter; $browsers = array('> 1%', 'last 2 versions', 'Firefox ESR', 'Opera 12.1'); new AutoprefixerFilter('/usr/bin/autoprefixer', $browsers);
LessFilter
Assetic is not able do detect change in @import files wen you use Less. Here comes the fix!
This filter take a third parameter which is an array of file paths. The files provided this way will be touch() by the filter to change their access time. So Assetic will detect a change and will rebuild the asset.
use ZaCoZa\Assetic\Filter\LessFilter; // The Main Less File with your @import files $myMainLessFile = __DIR__.'/assets/styles/main.less' new LessFilter('/usr/local/bin/node', // The path to the node binary array('/usr/local/lib/node_modules'), // An array of node paths array($myMainLessFile) // MAGIC: An array of file paths you want to touch() );