Skip to content

Commit 23208a3

Browse files
committed
Show plural if assets are more than one
1 parent 81235e1 commit 23208a3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/Stats.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,11 @@ class Stats {
874874
colors.green(" [built]");
875875
}
876876
if (module.assets && module.assets.length) {
877-
colors.magenta(` [${module.assets.length} asset]`);
877+
colors.magenta(
878+
` [${module.assets.length} asset${
879+
module.assets.length === 1 ? "" : "s"
880+
}]`
881+
);
878882
}
879883
if (module.prefetched) {
880884
colors.magenta(" [prefetched]");

0 commit comments

Comments
 (0)