|
|
|
@ -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>");
|
|
|
|
|