mirror of
https://github.com/flarum/framework.git
synced 2024-11-23 22:44:54 +08:00
Use Less_Parser cache feature to speed up LESS generation
This commit is contained in:
parent
c6079c53c9
commit
a57e3fc028
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user