first commit
This commit is contained in:
17
vendor/yiisoft/yii2-bootstrap5/docs/guide-zh-CN/topics-sass.md
vendored
Normal file
17
vendor/yiisoft/yii2-bootstrap5/docs/guide-zh-CN/topics-sass.md
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
直接使用Bootstrap的.sass文件
|
||||
=======================================
|
||||
|
||||
如果引入 [直接使用Bootstrap的.sass文件](https://getbootstrap.com/getting-started/#customizing)
|
||||
则需要禁用原始加载的 css 文件.
|
||||
通过设置 [[yii\bootstrap5\BootstrapAsset|BootstrapAsset]] 的 css 属性为空即可.
|
||||
为此,需要配置 `assetManager` [应用组件](https://github.com/yiisoft/yii2/blob/master/docs/guide/structure-application-components.md) 为如下:
|
||||
|
||||
```php
|
||||
'assetManager' => [
|
||||
'bundles' => [
|
||||
'yii\bootstrap5\BootstrapAsset' => [
|
||||
'css' => [],
|
||||
]
|
||||
]
|
||||
]
|
||||
```
|
||||
Reference in New Issue
Block a user