diff --git a/webpack.config.js b/webpack.config.js index 484be5c20..1805669fd 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -60,7 +60,7 @@ routes.forEach(function (route) { // Config module.exports = { entry: entry, - devtool: 'eval', + devtool: process.env.NODE_ENV === 'production' ? 'none' : 'eval', output: { path: path.resolve(__dirname, 'build'), filename: 'js/[name].bundle.js'