Browse Source

Merge pull request #8686 from abpframework/bundle-logging

Info Logging For CLI Bundle Command
pull/8693/head
Halil İbrahim Kalkan 6 years ago
committed by GitHub
parent
commit
8827f32b09
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Bundling/BundlingService.cs

12
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<BundleTypeDefinition> bundleDefinitions,

Loading…
Cancel
Save