Use Less_Parser cache feature to speed up LESS generation

This commit is contained in:
Toby Zerner 2015-04-25 22:34:46 +09:30
parent c6079c53c9
commit a57e3fc028

View File

@ -114,7 +114,7 @@ class AssetManager
{
ini_set('xdebug.max_nesting_level', 200);
$parser = new Less_Parser(['compress' => true]);
$parser = new Less_Parser(['compress' => true, 'cache_dir' => storage_path().'/less']);
$css = [];
$dir = $this->getAssetDirectory();