From 5b11ccacedb9cb273a180b71c3ec97bba6234be7 Mon Sep 17 00:00:00 2001 From: Enis Necipoglu Date: Tue, 14 Jan 2025 13:57:25 +0300 Subject: [PATCH 1/2] Enhance documentation for `abp bundle` --- docs/en/framework/ui/blazor/global-scripts-styles.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/en/framework/ui/blazor/global-scripts-styles.md b/docs/en/framework/ui/blazor/global-scripts-styles.md index d53fc3d2ba..ef95172c08 100644 --- a/docs/en/framework/ui/blazor/global-scripts-styles.md +++ b/docs/en/framework/ui/blazor/global-scripts-styles.md @@ -36,7 +36,15 @@ namespace MyProject.Blazor > There is a BundleContributor class implementing `IBundleContributor` interface coming by default with the startup templates. So, most of the time, you don't need to add it manually. ## Bundling And Minification -`abp bundle` command offers bundling and minification support for client-side resources(JavaScript and CSS files). `abp bundle` command reads the `appsettings.json` file inside the Blazor project and bundles the resources according to the configuration. You can find the bundle configurations inside `AbpCli.Bundle` element. +The `abp bundle` command provides bundling and minification capabilities for your client-side resources (JavaScript and CSS files). When you run this command, it processes and bundles the resources based on configuration settings and generates optimized bundles that can be used in your application. + +```bash +abp bundle + +# for a different ABP version than current CLI version +abp bundle --version 9.0.3 +``` +### Bundle Configuration Here are the options that you can control inside the `appsettings.json` file. From 20c16e98c8027ed1da57daed62e3966d98b14e63 Mon Sep 17 00:00:00 2001 From: EngincanV Date: Tue, 14 Jan 2025 16:15:11 +0300 Subject: [PATCH 2/2] Update AbpIoSourceCodeStore.cs --- .../Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs index 7ae34bef1c..5ef3657529 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs +++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs @@ -291,7 +291,7 @@ public class AbpIoSourceCodeStore : ISourceCodeStore, ITransientDependency var result = await response.Content.ReadAsStringAsync(); var versions = JsonSerializer.Deserialize(result); - return templateName.Contains("LeptonX") ? + return (templateName.Contains("LeptonX") || templateName.Contains("lepton-x")) ? versions.LeptonXVersions.Any(v => v.Name == version) : versions.FrameworkAndCommercialVersions.Any(v => v.Name == version); }