Skip to content

Commit

Permalink
Update webpack.config.js
Browse files Browse the repository at this point in the history
Disable source-map for production due to issue with Babel plugin.
See webpack-contrib/babel-minify-webpack-plugin#68
  • Loading branch information
jbelien committed Sep 6, 2018
1 parent f66f146 commit 3f88491
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ module.exports = (env, options) => {
// See https://github.com/mlwilkerson/uglify-es-terser-92percent-repro/
new MinifyPlugin()
],
devtool: options.mode === 'development' ? 'eval-cheap-module-source-map' : 'source-map',
// Production : see https://github.com/webpack-contrib/babel-minify-webpack-plugin/issues/68
devtool: options.mode === 'development' ? 'eval-cheap-module-source-map' : false
};
};

0 comments on commit 3f88491

Please sign in to comment.