File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ clearConsole();
110
110
console .log (' Just cleared the screen!' );
111
111
```
112
112
113
- #### ` formatWebpackMessages(stats: WebpackStats ): {errors: Array<string>, warnings: Array<string>} `
113
+ #### ` formatWebpackMessages({errors: Array<string>, warnings: Array<string>} ): {errors: Array<string>, warnings: Array<string>} `
114
114
115
115
Extracts and prettifies warning and error messages from webpack [ stats] ( https://github.com/webpack/docs/wiki/node.js-api#stats ) object.
116
116
@@ -125,7 +125,8 @@ compiler.plugin('invalid', function() {
125
125
});
126
126
127
127
compiler .plugin (' done' , function (stats ) {
128
- var messages = formatWebpackMessages (stats);
128
+ var rawMessages = stats .toJson ({}, true );
129
+ var messages = formatWebpackMessages (rawMessages);
129
130
if (! messages .errors .length && ! messages .warnings .length ) {
130
131
console .log (' Compiled successfully!' );
131
132
}
You can’t perform that action at this time.
0 commit comments