Commit 0a8ac696 authored by Tobias Munk's avatar Tobias Munk

updated asset bundle dependencies

parent dbe799b1
...@@ -21,21 +21,22 @@ class AppAsset extends AssetBundle ...@@ -21,21 +21,22 @@ class AppAsset extends AssetBundle
{ {
public $sourcePath = '@app/assets/web'; public $sourcePath = '@app/assets/web';
public $js = [
'js/app.js',
];
public $css = [ public $css = [
// Note: less files require a compiler (available by default on Phundament Docker images) // Note: less files require a compiler (available by default on Phundament Docker images)
// use .css alternatively // use .css alternatively
#'less/app.less', #'less/app.less',
]; ];
public $js = [
'js/app.js',
];
// we recompile the less files from 'yii\bootstrap\BootstrapAsset' and include the css in app.css
// therefore we set bundle to false in application config
public $depends = [ public $depends = [
'yii\bootstrap\BootstrapAsset',
'yii\web\YiiAsset', 'yii\web\YiiAsset',
'yii\bootstrap\BootstrapPluginAsset',
// if we recompile the less files from 'yii\bootstrap\BootstrapAsset' and include the css in app.css
// we need set bundle to `false` in application config and remove the following line
'yii\bootstrap\BootstrapAsset',
]; ];
public function init() public function init()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment