1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-25 06:51:46 +02:00

add scss support via leafo/scssphp

This commit is contained in:
Elan Ruusamäe
2016-10-12 16:32:11 +03:00
parent 60b89dcc0d
commit fdc69a369e
3 changed files with 177 additions and 3 deletions

View File

@@ -67,9 +67,13 @@ class Minify_Source_Factory {
throw new InvalidArgumentException("fileChecker option is not callable");
}
$this->setHandler('~\.less$~i', function ($spec) use ($cache) {
return new Minify_LessCssSource($spec, $cache);
});
$this->setHandler('~\.less$~i', function ($spec) use ($cache) {
return new Minify_LessCssSource($spec, $cache);
});
$this->setHandler('~\.scss~i', function ($spec) use ($cache) {
return new Minify_ScssCssSource($spec, $cache);
});
$this->setHandler('~\.(js|css)$~i', function ($spec) {
return new Minify_Source($spec);