Skip to content

Commit 1b962f3

Browse files
disable HMR in prod mode - fix for #6
1 parent 9a143e3 commit 1b962f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webpack.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ const devPlugins = [
1515
const prodPlugins = [];
1616
const commonPlugins = [];
1717
const plugins = dev ? devPlugins.concat(commonPlugins) : prodPlugins.concat(commonPlugins);
18-
18+
const entry = dev ? ['webpack/hot/poll?1000', './src/server/main.ts'] : './src/server/main.ts';
1919
// TODO: add plugins
2020

2121
module.exports = {
22-
entry: ['webpack/hot/poll?1000', './src/server/main.ts'],
22+
entry,
2323
output: {
2424
path: path.resolve(__dirname, "./bin"),
2525
filename: "server.bundle.js"

0 commit comments

Comments
 (0)