cli: workaround for frontend HMR not working

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-04-15 12:07:45 +02:00
committed by blam
parent 66fbcce83c
commit 48c1c0d677
+3
View File
@@ -167,6 +167,9 @@ export async function createConfig(
performance: {
hints: false, // we check the gzip size instead
},
// Workaround for hot module reloads not working, will be fixed in webpack-dev-server v4
// https://github.com/webpack/webpack-dev-server/issues/2758
target: 'web',
devtool: isDev ? 'eval-cheap-module-source-map' : 'source-map',
context: paths.targetPath,
entry: [require.resolve('react-hot-loader/patch'), paths.targetEntry],