Skip to content

Commit a5bd84f

Browse files
committed
plugin assets
1 parent 04aaf91 commit a5bd84f

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/MDBootstrapAsset.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
2-
32
namespace kingston\mdbootstrap;
43

54
use yii\web\AssetBundle;

src/MDBootstrapPluginAsset.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
namespace kingston\mdbootstrap;
3+
4+
use yii\web\AssetBundle;
5+
6+
7+
class MDBootstrapPluginAsset extends AssetBundle
8+
{
9+
public $sourcePath = '@npm/mdbootstrap';
10+
public $js = [
11+
'js/mdb.js',
12+
];
13+
public $depends = [
14+
'yii\web\JqueryAsset',
15+
'yii\bootstrap4\BootstrapAsset',
16+
];
17+
}

0 commit comments

Comments
 (0)