add fronend asset compression
This commit is contained in:
@@ -10,9 +10,17 @@ return [
|
||||
'id' => 'app-frontend',
|
||||
'name' =>'Fitness recepció',
|
||||
'basePath' => dirname(__DIR__),
|
||||
'bootstrap' => ['log'],
|
||||
'bootstrap' => ['log','assetsAutoCompress'],
|
||||
'controllerNamespace' => 'frontend\controllers',
|
||||
'components' => [
|
||||
'assetsAutoCompress' =>
|
||||
[
|
||||
'class' => '\iisns\assets\AssetsCompressComponent',
|
||||
'enabled' => true,
|
||||
'jsCompress' => true,
|
||||
'cssFileCompile' => true,
|
||||
'jsFileCompile' => true,
|
||||
],
|
||||
'request' => [
|
||||
'enableCsrfValidation'=>false,
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user