From 0e9b4abba2bf7e323063b11253217723c9c43170 Mon Sep 17 00:00:00 2001 From: Hamza Khchichine <40059557+Hamzakh777@users.noreply.github.com> Date: Sat, 16 Sep 2023 02:45:07 +0100 Subject: [PATCH] style(rspack_plugin_progress): Change the formatting style to match WebpackBar (#4201) * style: change the formating style of progress plugin * style: update the color and width --- crates/rspack_plugin_progress/src/lib.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/rspack_plugin_progress/src/lib.rs b/crates/rspack_plugin_progress/src/lib.rs index 692076c4b12..79f5ad1d114 100644 --- a/crates/rspack_plugin_progress/src/lib.rs +++ b/crates/rspack_plugin_progress/src/lib.rs @@ -29,9 +29,11 @@ impl ProgressPlugin { pub fn new(options: ProgressPluginOptions) -> Self { let progress_bar = ProgressBar::with_draw_target(Some(100), ProgressDrawTarget::stdout()); progress_bar.set_style( - ProgressStyle::with_template("{prefix:.bold} {bar:25.green/white.dim} {wide_msg:.dim}") - .expect("TODO:") - .progress_chars("━━"), + ProgressStyle::with_template( + "● {prefix:.bold} {bar:25.green/white.dim} ({percent}%) {wide_msg:.dim}", + ) + .expect("TODO:") + .progress_chars("━━"), ); Self { options,