From da529664a6426120f2214176ee61568007048fb3 Mon Sep 17 00:00:00 2001 From: liangshiwei Date: Mon, 22 Aug 2022 16:10:56 +0800 Subject: [PATCH] Support compressed dlls --- .../Volo/Abp/Cli/Bundling/BundlingService.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Bundling/BundlingService.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Bundling/BundlingService.cs index 492e938874..faf176dee9 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Bundling/BundlingService.cs +++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Bundling/BundlingService.cs @@ -113,8 +113,12 @@ public class BundlingService : IBundlingService, ITransientDependency var contributor = CreateContributorInstance(bundleDefinition.BundleContributorType); contributor.AddScripts(scriptContext); } - - scriptContext.Add("_framework/blazor.webassembly.js"); + + if (scriptContext.BundleDefinitions.All(x => x.Source != "_framework/blazor.webassembly.js")) + { + scriptContext.Add("_framework/blazor.webassembly.js"); + } + return scriptContext; }