diff --git a/docs/AspNetCore/Bundling-Minification.md b/docs/AspNetCore/Bundling-Minification.md index 170faea774..1a0fed4b2a 100644 --- a/docs/AspNetCore/Bundling-Minification.md +++ b/docs/AspNetCore/Bundling-Minification.md @@ -39,10 +39,10 @@ The simplest way of creating a bundle is to use `abp-script-bundle` or `abp-styl ````html - - - - + + + + ```` @@ -69,12 +69,12 @@ The `name` is **optional** for the razor bundle tag helpers. If you don't define ````html - - - + + + @if (ViewBag.IncludeCustomStyles != false) { - + } ```` @@ -83,16 +83,14 @@ This will potentially create two different bundles (one incudes the `my-global-s > It's always suggested to use a `name` for the bundle unless you need to the dynamic bundling feature. Providing a name is more performant since it does not need to get bundle files and calculate a dynamic name. -#### Single File Bundle +#### Single File -If you need to just add a single file to the page, you can use the `abp-script` or `abp-style` tag helper as a shortcut. Example: +If you need to just add a single file to the page, you can use the `abp-script` or `abp-style` tag without a surrounding `abp-script-bundle` or `abp-style-bundle` tag. Example: ````xml ```` -All the benefits of bundling & minification are also valid here. - ### Using Bundling Options If you need to use same bundle in **multiple pages** or want to use some more **powerful features**, you can configure bundles **by code** in your [module](../Module-Development-Basics.md) class.