fix: youch with source-map in default dev case

This commit is contained in:
Clark Du 2017-12-11 13:50:46 +08:00 committed by Pooya Parsa
parent b86426aaa0
commit 72e2351719

View File

@ -23,7 +23,7 @@ export default function webpackServerConfig() {
config = Object.assign(config, { config = Object.assign(config, {
target: 'node', target: 'node',
node: false, node: false,
devtool: this.options.dev ? config.devtool : 'source-map', devtool: 'source-map',
entry: resolve(this.options.buildDir, 'server.js'), entry: resolve(this.options.buildDir, 'server.js'),
output: Object.assign({}, config.output, { output: Object.assign({}, config.output, {
filename: 'server-bundle.js', filename: 'server-bundle.js',