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 081dde346d
commit a4fbcd451d

View File

@ -114,7 +114,7 @@ class AssetManager
{ {
ini_set('xdebug.max_nesting_level', 200); 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 = []; $css = [];
$dir = $this->getAssetDirectory(); $dir = $this->getAssetDirectory();