mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-02 03:16:11 +01:00
optimizations + fixes
This commit is contained in:
@@ -610,8 +610,13 @@ class AdminPlugin extends Plugin
|
||||
$assets->setJsPipeline(false);
|
||||
$assets->setCssPipeline(false);
|
||||
|
||||
// Whitebox logic
|
||||
$this->grav['admin-whitebox']->compileScss($this->config->get('plugins.admin.whitebox'), true);
|
||||
// Compile a missing preset.css file
|
||||
$preset_css = 'plugin://admin/themes/grav/css-compiled/preset.css';
|
||||
$preset_path = $this->grav['locator']->findResource($preset_css);
|
||||
if (!$preset_path) {
|
||||
$this->grav['admin-whitebox']->compileScss($this->config->get('plugins.admin.whitebox'));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user