From a39870f224320856d43eb3377343f1c4229f11dd Mon Sep 17 00:00:00 2001 From: Yukai Huang Date: Tue, 11 Apr 2017 16:39:47 +0800 Subject: [PATCH] Enable source map in development build --- webpack.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index f9f0a1c9e..b725174c0 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -5,8 +5,10 @@ var path = require('path') module.exports = [Object.assign({}, baseConfig, { plugins: baseConfig.plugins.concat([ new ExtractTextPlugin('[name].css') - ]) + ]), + devtool: 'source-map' }), { + devtool: 'source-map', entry: { htmlExport: path.join(__dirname, 'public/js/htmlExport.js') },