chore: fix webpack reload

This commit is contained in:
Thomas Nordquist
2024-05-27 18:05:24 +02:00
parent 42565c8bdc
commit 28b99f5774
4 changed files with 50 additions and 258 deletions

View File

@@ -41,6 +41,7 @@ module.exports = {
devServer: {
// contentBase: './dist', // content not from webpack
hot: true,
liveReload: true,
},
target: 'electron-renderer',
mode: 'production',
@@ -89,7 +90,6 @@ module.exports = {
plugins: [
new HtmlWebpackPlugin({ template: './index.html', file: './build/index.html', inject: false }),
// new BundleAnalyzerPlugin(),
new webpack.HotModuleReplacementPlugin(),
// new webpack.IgnorePlugin({
// resourceRegExp: /\.\/build\/Debug\/addon/,
// contextRegExp: /heapdump$/
@@ -107,4 +107,7 @@ module.exports = {
cache: {
type: 'filesystem',
},
optimization: {
runtimeChunk: 'single',
},
}