From 72e2351719f515482c32fe091cae6f83fdece9a9 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Mon, 11 Dec 2017 13:50:46 +0800 Subject: [PATCH] fix: youch with source-map in default dev case --- lib/builder/webpack/server.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/builder/webpack/server.config.js b/lib/builder/webpack/server.config.js index eb0f5a5579..fcdd5bfc8b 100644 --- a/lib/builder/webpack/server.config.js +++ b/lib/builder/webpack/server.config.js @@ -23,7 +23,7 @@ export default function webpackServerConfig() { config = Object.assign(config, { target: 'node', node: false, - devtool: this.options.dev ? config.devtool : 'source-map', + devtool: 'source-map', entry: resolve(this.options.buildDir, 'server.js'), output: Object.assign({}, config.output, { filename: 'server-bundle.js',