parent
5f4839cf07
commit
67342864ee
@ -20,17 +20,11 @@ class BootstrapAsset extends AssetBundle
|
||||
* @inheritDoc
|
||||
*/
|
||||
public $sourcePath = '@bower/bootstrap';
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public $css = [
|
||||
YII_ENV_PROD ? 'dist/css/bootstrap.min.css' : 'dist/css/bootstrap.css'
|
||||
];
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public $publishOptions = [
|
||||
'only' => ['scss/*.scss', 'scss/*/*.scss', 'dist/css/bootstrap.*'],
|
||||
'except' => ['scss/bootstrap-*.scss']
|
||||
'dist/css/bootstrap.css'
|
||||
];
|
||||
}
|
||||
|
@ -11,12 +11,20 @@ namespace yii\bootstrap5;
|
||||
|
||||
use yii\web\AssetBundle;
|
||||
|
||||
/**
|
||||
* Twitter Bootstrap 5 icon bundle
|
||||
*/
|
||||
class BootstrapIconAsset extends AssetBundle
|
||||
{
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public $sourcePath = '@vendor/twbs/bootstrap-icons/font';
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public $css = [
|
||||
'bootstrap-icons.css'
|
||||
];
|
||||
|
||||
}
|
||||
|
@ -20,22 +20,18 @@ class BootstrapPluginAsset extends AssetBundle
|
||||
* @inheritDoc
|
||||
*/
|
||||
public $sourcePath = '@bower/bootstrap';
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public $js = [
|
||||
YII_ENV_PROD ? 'dist/js/bootstrap.bundle.min.js' : 'dist/js/bootstrap.bundle.js'
|
||||
];
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public $publishOptions = [
|
||||
'only' => ['dist/js/bootstrap.bundle.*', 'js/src/*.js', 'js/src/*/*.js']
|
||||
'dist/js/bootstrap.bundle.js'
|
||||
];
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public $depends = [
|
||||
BootstrapAsset::class
|
||||
'yii\bootstrap5\BootstrapAsset'
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user