mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 15:03:44 +08:00
Use Less_Parser cache feature to speed up LESS generation
This commit is contained in:
parent
081dde346d
commit
a4fbcd451d
|
@ -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