for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\Yii\Bootstrap5\Assets;
use Yiisoft\Assets\AssetBundle;
use Yiisoft\Files\PathMatcher\PathMatcher;
/**
* Asset bundle for the Twitter bootstrap css files.
*
* BootstrapAsset.
* @package Bootstrap5
*/
final class BootstrapAsset extends AssetBundle
{
public ?string $basePath = '@assets';
public ?string $baseUrl = '@assetsUrl';
public ?string $sourcePath = '@npm/bootstrap/dist';
public array $css = [
'css/bootstrap.css',
];
public array $js = [
'js/bootstrap.bundle.js',
public function __construct()
$pathMatcher = new PathMatcher();
$this->publishOptions = [
'filter' => $pathMatcher->only(
'css/bootstrap.css.map',
'js/bootstrap.bundle.js.map',
),
}