mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-06 21:26:45 +02:00
Merge pull request #231 from cord/patch-1
disable asset pipeline in admin only
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