Browse Source
Merge pull request #12716 from Cyril-hcj/patch-10
Update Bundling-Minification.md
pull/12738/head
liangshiwei
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
docs/zh-Hans/UI/AspNetCore/Bundling-Minification.md
|
|
|
@ -48,7 +48,7 @@ namespace MyCompany.MyProject |
|
|
|
</abp-style-bundle> |
|
|
|
```` |
|
|
|
|
|
|
|
`abp-script-bundle`定义了一个带有**唯一名称**的样式包:`MyGlobalBundle`. 使用方法很容易理解. 让我们看看它是如何*工作的*: |
|
|
|
`abp-style-bundle`定义了一个带有**唯一名称**的样式包:`MyGlobalBundle`. 使用方法很容易理解. 让我们看看它是如何*工作的*: |
|
|
|
|
|
|
|
* 当首次请求时,ABP从提供的文件中 **(延迟)lazy** 创建. 后续将从 **缓存** 中返回内容. 这意味着如果你有条件地将文件添加到包中,它只执行一次, 并且条件的任何更改都不会影响下一个请求的包. |
|
|
|
* 在`development`环境中ABP会将包文件**单独**添加到页面中, 其他环境(`staging`,`production`...)会自动捆绑和压缩. |
|
|
|
|