2021-02-10 05:04:59 +08:00
|
|
|
<?php
|
2021-08-07 05:38:53 +08:00
|
|
|
/**
|
2022-10-13 20:13:20 +08:00
|
|
|
* @link https://www.yiiframework.com/
|
2021-08-07 05:38:53 +08:00
|
|
|
* @copyright Copyright (c) 2008 Yii Software LLC
|
2022-10-13 20:13:20 +08:00
|
|
|
* @license https://www.yiiframework.com/license/
|
2021-08-07 05:38:53 +08:00
|
|
|
*/
|
2021-02-10 05:04:59 +08:00
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace yii\bootstrap5;
|
|
|
|
|
|
|
|
use yii\web\AssetBundle;
|
|
|
|
|
|
|
|
/**
|
2022-10-13 20:13:20 +08:00
|
|
|
* Twitter Bootstrap 5 JavaScript bundle.
|
2021-02-10 05:04:59 +08:00
|
|
|
*/
|
|
|
|
class BootstrapPluginAsset extends AssetBundle
|
|
|
|
{
|
2022-10-13 20:13:20 +08:00
|
|
|
/**
|
|
|
|
* @inheritDoc
|
|
|
|
*/
|
|
|
|
public $sourcePath = '@bower/bootstrap';
|
|
|
|
/**
|
|
|
|
* @inheritDoc
|
|
|
|
*/
|
2021-02-10 05:04:59 +08:00
|
|
|
public $js = [
|
2022-10-13 20:13:20 +08:00
|
|
|
YII_ENV_PROD ? 'dist/js/bootstrap.bundle.min.js' : 'dist/js/bootstrap.bundle.js'
|
2021-02-10 05:04:59 +08:00
|
|
|
];
|
2022-10-13 20:13:20 +08:00
|
|
|
/**
|
|
|
|
* @inheritDoc
|
|
|
|
*/
|
|
|
|
public $publishOptions = [
|
|
|
|
'only' => ['dist/js/bootstrap.bundle.*', 'js/src/*.js', 'js/src/*/*.js']
|
|
|
|
];
|
|
|
|
/**
|
|
|
|
* @inheritDoc
|
|
|
|
*/
|
2021-02-10 05:04:59 +08:00
|
|
|
public $depends = [
|
2022-10-13 20:13:20 +08:00
|
|
|
BootstrapAsset::class
|
2021-02-10 05:04:59 +08:00
|
|
|
];
|
|
|
|
}
|