Skip to content

Commit

Permalink
Update SearchAsset.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kazda01 authored Oct 28, 2023
1 parent 2354377 commit 271e7b8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/SearchAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ class SearchAsset extends \yii\web\AssetBundle
public function init(): void
{
$this->sourcePath = __DIR__ . '/assets';

$this->js = [
defined('YII_ENV_DEV') && YII_ENV_DEV ? 'search.js' : 'search.min.js'
];

parent::init();
}

public $js = [
defined('YII_ENV_DEV') && YII_ENV_DEV ? 'search.js' : 'search.min.js',
];

public $css = [
'search.css'
];
Expand Down

0 comments on commit 271e7b8

Please sign in to comment.