Commit afbc5acf authored by Andrew Sun͈̮'s avatar Andrew Sun͈̮ Committed by Andrew Sun

Don't use eval devtool in production

parent ad3189c1
......@@ -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'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment