| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function init() |
||
| 26 | { |
||
| 27 | // define the path that your publishable resources live |
||
| 28 | $this->sourcePath = __DIR__.'/dist'; |
||
| 29 | |||
| 30 | // define the dependencies |
||
| 31 | $this->depends = [ |
||
| 32 | CpAsset::class, |
||
| 33 | AnalyticsAsset::class, |
||
| 34 | ]; |
||
| 35 | |||
| 36 | // define the relative path to CSS/JS files that should be registered with the page |
||
| 37 | // when this asset bundle is registered |
||
| 38 | $this->js = [ |
||
| 39 | 'EcommerceWidget.js', |
||
| 40 | ]; |
||
| 41 | |||
| 42 | $this->css = [ |
||
| 43 | 'EcommerceWidget.css', |
||
| 44 | ]; |
||
| 45 | |||
| 46 | parent::init(); |
||
| 47 | } |
||
| 48 | } |