store preset in asset:// rather than admin plugin

This commit is contained in:
Andy Miller
2020-04-19 23:52:23 -06:00
parent e3c73c30a5
commit e1b571a655
5 changed files with 26 additions and 1319 deletions

View File

@@ -615,7 +615,7 @@ class AdminPlugin extends Plugin
$assets->setCssPipeline(false);
// Compile a missing preset.css file
$preset_css = 'plugin://admin/themes/grav/css-compiled/preset.css';
$preset_css = 'asset://admin-preset.css';
$preset_path = $this->grav['locator']->findResource($preset_css);
if (!$preset_path) {
$this->grav['admin-whitebox']->compileScss($this->config->get('plugins.admin.whitebox'));