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)
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)) {