0 follower

Final Class Yiisoft\Bootstrap5\Assets\BootstrapAsset

InheritanceYiisoft\Bootstrap5\Assets\BootstrapAsset » Yiisoft\Assets\AssetBundle

Asset bundle for the Bootstrap files.

Property Details

Hide inherited properties

$basePath public property
public string|null $basePath '@assets'
$baseUrl public property
public string|null $baseUrl '@assetsUrl'
$css public property
public array $css = [
    
'css/bootstrap.css',
]
$js public property
public array $js = [
    
'js/bootstrap.bundle.js',
]
$sourcePath public property
public string|null $sourcePath '@npm/bootstrap/dist'

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( )

                public function __construct()
{
    $pathMatcher = new PathMatcher();
    $this->publishOptions = [
        'filter' => $pathMatcher->only(
            '**css/bootstrap.css',
            '**css/bootstrap.css.map',
            '**js/bootstrap.bundle.js',
            '**js/bootstrap.bundle.js.map',
        ),
    ];
}