Skip to content

Commit 7877b8c

Browse files
committed
minor #891 normalizing width of logger categories (weaverryan)
This PR was merged into the main branch. Discussion ---------- normalizing width of logger categories This was originally done so that they all lined up nicely in a column. But I noticed that Webpack (at least v5) consistently uses just one space around each. Commits ------- c2be193 normalizing width of logger categories
2 parents 42aab44 + c2be193 commit 7877b8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/logger.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module.exports = {
4747
messages.debug.push(message);
4848

4949
if (config.isVerbose) {
50-
log(`${chalk.bgBlack.white(' DEBUG ')} ${message}`);
50+
log(`${chalk.bgBlack.white(' DEBUG ')} ${message}`);
5151
}
5252
},
5353

@@ -60,13 +60,13 @@ module.exports = {
6060
warning(message) {
6161
messages.warning.push(message);
6262

63-
log(`${chalk.bgYellow.black(' WARNING ')} ${chalk.yellow(message)}`);
63+
log(`${chalk.bgYellow.black(' WARNING ')} ${chalk.yellow(message)}`);
6464
},
6565

6666
deprecation(message) {
6767
messages.deprecation.push(message);
6868

69-
log(`${chalk.bgYellow.black('DEPRECATION')} ${chalk.yellow(message)}`);
69+
log(`${chalk.bgYellow.black(' DEPRECATION ')} ${chalk.yellow(message)}`);
7070
},
7171

7272
getMessages() {

0 commit comments

Comments
 (0)