maliming
2 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
5 additions and
0 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Bundling/BundlingService.cs
|
|
@ -111,6 +111,11 @@ public class BundlingService : IBundlingService, ITransientDependency |
|
|
Directory.GetFiles(Path.GetDirectoryName(projectFilePath)!.Replace(".Blazor", ".Host"), "App.razor", SearchOption.AllDirectories).FirstOrDefault() |
|
|
Directory.GetFiles(Path.GetDirectoryName(projectFilePath)!.Replace(".Blazor", ".Host"), "App.razor", SearchOption.AllDirectories).FirstOrDefault() |
|
|
: Path.Combine(PathHelper.GetWwwRootPath(directory), "index.html"); |
|
|
: Path.Combine(PathHelper.GetWwwRootPath(directory), "index.html"); |
|
|
|
|
|
|
|
|
|
|
|
if (fileName == null) |
|
|
|
|
|
{ |
|
|
|
|
|
throw new BundlingException($"App.razor file could not be found in the {projectFilePath} directory."); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
await UpdateDependenciesInBlazorFileAsync(fileName, styleDefinitions, scriptDefinitions); |
|
|
await UpdateDependenciesInBlazorFileAsync(fileName, styleDefinitions, scriptDefinitions); |
|
|
|
|
|
|
|
|
Logger.LogInformation($"Script and style references in the {fileName} file have been updated."); |
|
|
Logger.LogInformation($"Script and style references in the {fileName} file have been updated."); |
|
|
|