From 86475e0d3a401d9935fa1687ce70a966c819588e Mon Sep 17 00:00:00 2001 From: Halil ibrahim Kalkan Date: Sun, 17 Jun 2018 18:47:39 +0300 Subject: [PATCH] Add Single File Bundle document. --- docs/AspNetCore/Bundling-Minification.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/AspNetCore/Bundling-Minification.md b/docs/AspNetCore/Bundling-Minification.md index 5a3114731a..170faea774 100644 --- a/docs/AspNetCore/Bundling-Minification.md +++ b/docs/AspNetCore/Bundling-Minification.md @@ -83,6 +83,16 @@ 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 + +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: + +````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.