Webpack: enable hot module replacement (HMR)

This commit is contained in:
Alex Gleason
2022-12-30 18:32:33 -06:00
parent 6034864199
commit 2ddd3ef2ac
4 changed files with 60 additions and 3 deletions

View File

@@ -25,6 +25,9 @@ const rule: RuleSetRule = {
cacheDirectory: join(settings.cache_path, 'babel-loader'),
cacheCompression: env.NODE_ENV === 'production',
compact: env.NODE_ENV === 'production',
plugins: [
'react-refresh/babel',
],
},
},
],