Skip to content

Commit

Permalink
style(rspack_plugin_progress): Change the formatting style to match W…
Browse files Browse the repository at this point in the history
…ebpackBar (#4201)

* style: change the formating style of progress plugin

* style: update the color and width
  • Loading branch information
Hamzakh777 authored Sep 16, 2023
1 parent 287bc09 commit 0e9b4ab
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions crates/rspack_plugin_progress/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0e9b4ab

Please sign in to comment.