mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-04 20:36:03 +01:00
Fixed admin style compilation failing to save CSS if assets folder does not exist
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
# v1.10.2
|
||||
## mm/dd/2021
|
||||
|
||||
2. [](#bugfix)
|
||||
* Fixed admin style compilation failing to save CSS if assets folder does not exist
|
||||
|
||||
# v1.10.1
|
||||
## 01/20/2021
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
namespace Grav\Plugin\Admin;
|
||||
|
||||
use Grav\Common\Data\Data;
|
||||
use Grav\Common\Filesystem\Folder;
|
||||
use Grav\Common\Grav;
|
||||
use Grav\Framework\File\File;
|
||||
use RocketTheme\Toolbox\Event\Event;
|
||||
@@ -38,6 +38,8 @@ class WhiteLabel
|
||||
$scss_list = new ScssList($locator->findResource($options['input']));
|
||||
$output_css = $locator->findResource(($options['output']), true, true);
|
||||
|
||||
Folder::create(dirname($output_css));
|
||||
|
||||
Grav::instance()->fireEvent('onAdminCompilePresetSCSS', new Event(['scss' => $scss_list]));
|
||||
|
||||
// Convert bak to regular array now we have run the event
|
||||
|
||||
Reference in New Issue
Block a user