diff --git a/webpack.dev.js b/webpack.dev.js index 890dd0eac6..024a3729d5 100644 --- a/webpack.dev.js +++ b/webpack.dev.js @@ -3,7 +3,7 @@ const { merge } = require('webpack-merge'); module.exports = merge(common, { // In order for live reload to work we must use "web" as the target not "browserlist" - target: 'web', + target: process.env.WEBPACK_SERVE ? 'web' : 'browserslist', mode: 'development', entry: './scripts/site.js', devtool: 'source-map',