Browse Source
Merge pull request #14375 from abpframework/6.0-wasm-bundle-fix
CLI - Change adding order of `blazor.webassembly.js`
pull/14376/head
Halil İbrahim Kalkan
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
4 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Bundling/BundlingService.cs
|
|
|
@ -108,15 +108,15 @@ public class BundlingService : IBundlingService, ITransientDependency |
|
|
|
Parameters = parameters |
|
|
|
}; |
|
|
|
|
|
|
|
scriptContext.BundleDefinitions.AddIfNotContains( |
|
|
|
x => x.Source == "_framework/blazor.webassembly.js", |
|
|
|
() => new BundleDefinition { Source = "_framework/blazor.webassembly.js" }); |
|
|
|
|
|
|
|
foreach (var bundleDefinition in bundleDefinitions) |
|
|
|
{ |
|
|
|
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" }); |
|
|
|
|
|
|
|
return scriptContext; |
|
|
|
} |
|
|
|
|