yii2-bootstrap5/src/BootstrapAsset.php

37 lines
737 B
PHP
Raw Normal View History

2021-02-10 05:04:59 +08:00
<?php
2021-08-07 05:38:53 +08:00
/**
* @link https://www.yiiframework.com/
2021-08-07 05:38:53 +08:00
* @copyright Copyright (c) 2008 Yii Software LLC
* @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;
/**
* Twitter Bootstrap 5 CSS bundle.
*/
2021-02-10 05:04:59 +08:00
class BootstrapAsset extends AssetBundle
{
/**
* @inheritDoc
*/
public $sourcePath = '@bower/bootstrap';
/**
* @inheritDoc
*/
2021-02-10 05:04:59 +08:00
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']
2021-02-10 05:04:59 +08:00
];
}