Disable HMR for now

This commit is contained in:
Rich Harris
2019-05-04 13:14:49 -04:00
committed by GitHub
parent aa1734fe2f
commit 79be87c3f5

View File

@@ -22,7 +22,7 @@ module.exports = {
options: { options: {
dev, dev,
hydratable: true, hydratable: true,
hotReload: true hotReload: false // pending https://github.com/sveltejs/svelte/issues/2377
} }
} }
} }
@@ -30,7 +30,8 @@ module.exports = {
}, },
mode, mode,
plugins: [ plugins: [
dev && new webpack.HotModuleReplacementPlugin(), // pending https://github.com/sveltejs/svelte/issues/2377
// dev && new webpack.HotModuleReplacementPlugin(),
new webpack.DefinePlugin({ new webpack.DefinePlugin({
'process.browser': true, 'process.browser': true,
'process.env.NODE_ENV': JSON.stringify(mode) 'process.env.NODE_ENV': JSON.stringify(mode)