Remove build logs in dev

This commit is contained in:
Sébastien Chopin 2017-02-28 17:32:03 +01:00
parent a4461ff590
commit 6773c98d28

View File

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