Browse Source
Merge pull request #13772 from abpframework/liangshiwei/blazor
Support compressed dlls
pull/13774/head
maliming
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
2 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Bundling/BundlingService.cs
|
|
|
@ -113,8 +113,11 @@ public class BundlingService : IBundlingService, ITransientDependency |
|
|
|
var contributor = CreateContributorInstance(bundleDefinition.BundleContributorType); |
|
|
|
contributor.AddScripts(scriptContext); |
|
|
|
} |
|
|
|
|
|
|
|
scriptContext.BundleDefinitions.AddIfNotContains( |
|
|
|
x => x.Source == "_framework/blazor.webassembly.js", |
|
|
|
() => new BundleDefinition { Source = "_framework/blazor.webassembly.js" }); |
|
|
|
|
|
|
|
scriptContext.Add("_framework/blazor.webassembly.js"); |
|
|
|
return scriptContext; |
|
|
|
} |
|
|
|
|
|
|
|
@ -206,7 +209,7 @@ public class BundlingService : IBundlingService, ITransientDependency |
|
|
|
builder.Append($" <script src=\"{script.Source}\""); |
|
|
|
foreach (var additionalProperty in script.AdditionalProperties) |
|
|
|
{ |
|
|
|
builder.Append($"{additionalProperty.Key}={additionalProperty.Value} "); |
|
|
|
builder.Append($" {additionalProperty.Key}={additionalProperty.Value} "); |
|
|
|
} |
|
|
|
|
|
|
|
builder.AppendLine("></script>"); |
|
|
|
|