From 12c57c4c580d82291bf1d01e7428011940cfb6f9 Mon Sep 17 00:00:00 2001 From: Halil ibrahim Kalkan Date: Mon, 18 Jun 2018 00:07:13 +0300 Subject: [PATCH] Update Bundling-Minification.md --- docs/AspNetCore/Bundling-Minification.md | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) 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.