Files larger than this size (in kB) will not be imported into the CSS.
Importing files into the CSS as data-uri will save you some connections,
but we should only import relatively small decorative images so that our
CSS file doesn't get too bulky.
public setMaxImportSize ( integer $size ) | ||
$size | integer | Size in kB |
/** * Test minifier import configuration methods. * * @test */ public function setConfig() { $this->minifier->setMaxImportSize(10); $this->minifier->setImportExtensions(array('gif' => 'data:image/gif')); $object = new ReflectionObject($this->minifier); $property = $object->getProperty('maxImportSize'); $property->setAccessible(true); $this->assertEquals($property->getValue($this->minifier), 10); $property = $object->getProperty('importExtensions'); $property->setAccessible(true); $this->assertEquals($property->getValue($this->minifier), array('gif' => 'data:image/gif')); }