We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e726193 commit a0dfd25Copy full SHA for a0dfd25
1 file changed
src/lib/wpack.js
@@ -62,8 +62,10 @@ const run = configs =>
62
webpack(configs, (err, stats) => {
63
if (err) reject(new Error(`Webpack compilation error: ${err}`));
64
65
+ const config = Array.isArray(configs) ? configs[0] : configs;
66
+
67
// eslint-disable-next-line no-console
- console.log(stats.toString(configs[0].stats ? configs[0].stats : {
68
+ console.log(stats.toString(config.stats ? config.stats : {
69
colors: true,
70
hash: false,
71
chunks: false,
0 commit comments