Don't use eval devtool in production

This commit is contained in:
Andrew Sun͈̮ 2017-11-27 14:59:45 -05:00 committed by Andrew Sun
parent ad3189c164
commit afbc5acf42

View file

@ -60,7 +60,7 @@ routes.forEach(function (route) {
// Config // Config
module.exports = { module.exports = {
entry: entry, entry: entry,
devtool: 'eval', devtool: process.env.NODE_ENV === 'production' ? 'none' : 'eval',
output: { output: {
path: path.resolve(__dirname, 'build'), path: path.resolve(__dirname, 'build'),
filename: 'js/[name].bundle.js' filename: 'js/[name].bundle.js'