Pass settings to (recursively) referenced files

This commit is contained in:
Kevin Pancake 2018-05-01 11:02:24 +02:00 committed by Matthias Mullie
parent ab7fea80ce
commit 6d922d0e2a

View File

@ -217,6 +217,8 @@ class CSS extends Minify
// grab referenced file & minify it (which may include importing
// yet other @import statements recursively)
$minifier = new static($importPath);
$minifier->setMaxImportSize($this->maxImportSize);
$minifier->setImportExtensions($this->importExtensions);
$importContent = $minifier->execute($source, $parents);
// check if this is only valid for certain media