Merge pull request #3027 from dmitrylyzo/legacy-dev

Use "web" target in the serve mode only
This commit is contained in:
Bill Thornton 2021-10-06 23:39:06 -04:00 committed by GitHub
commit 816be00e2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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',