mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-07 10:07:04 +02:00
disable asset pipeline in admin only
currently pipelines are also deactivated on frontend
This commit is contained in:
@@ -109,9 +109,11 @@ class AdminPlugin extends Plugin
|
||||
$this->initializeAdmin();
|
||||
}
|
||||
|
||||
// Disable Asset pipelining
|
||||
$this->config->set('system.assets.css_pipeline', false);
|
||||
$this->config->set('system.assets.js_pipeline', false);
|
||||
if ($this->isAdmin()) {
|
||||
// Disable Asset pipelining
|
||||
$this->config->set('system.assets.css_pipeline', false);
|
||||
$this->config->set('system.assets.js_pipeline', false);
|
||||
}
|
||||
|
||||
// We need popularity no matter what
|
||||
require_once __DIR__ . '/classes/popularity.php';
|
||||
|
||||
Reference in New Issue
Block a user