From 389400c647509fa5a1338e7deb1fc6958cbb594e Mon Sep 17 00:00:00 2001 From: Ilkay Ilknur Date: Mon, 19 Apr 2021 15:10:14 +0300 Subject: [PATCH] info logging added. --- .../Volo/Abp/Cli/Bundling/BundlingService.cs | 12 ++++++++++-- 1 file changed, 10 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 cc8d9c0bf5..74be59e014 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 @@ -77,17 +77,25 @@ namespace Volo.Abp.Cli.Bundling BundleName = bundleConfig.Name.IsNullOrEmpty() ? "global" : bundleConfig.Name, Minify = bundleConfig.Mode == BundlingMode.BundleAndMinify }; - + + Logger.LogInformation("Generating style bundle..."); styleDefinitions = StyleBundler.Bundle(options, styleContext); + Logger.LogInformation($"Style bundle has been generated successfully."); + + Logger.LogInformation("Generating script bundle..."); scriptDefinitions = ScriptBundler.Bundle(options, scriptContext); + Logger.LogInformation($"Script bundle has been generated successfully."); } else { + Logger.LogInformation("Generating style references..."); styleDefinitions = GenerateStyleDefinitions(styleContext); + Logger.LogInformation("Generating script references..."); scriptDefinitions = GenerateScriptDefinitions(scriptContext); } - + await UpdateDependenciesInHtmlFileAsync(directory, styleDefinitions, scriptDefinitions); + Logger.LogInformation("Script and style references in the index.html file have been updated."); } private BundleContext GetScriptContext(List bundleDefinitions,