diff --git a/lib/build.js b/lib/build.js index 6f5e1c5a1a..cd73d37ee1 100644 --- a/lib/build.js +++ b/lib/build.js @@ -38,12 +38,7 @@ const r = function () { args = args.map(normalize) return wp(resolve.apply(null, args)) } -const webpackStats = { - chunks: false, - children: false, - modules: false, - colors: true -} +let webpackStats = 'none' // force green color debug.color = 2 @@ -96,6 +91,12 @@ export function options () { } // Production, create server-renderer if (!this.dev) { + webpackStats = { + chunks: false, + children: false, + modules: false, + colors: true + } const serverConfig = getWebpackServerConfig.call(this) const bundlePath = join(serverConfig.output.path, serverConfig.output.filename) if (fs.existsSync(bundlePath)) {