mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-22 06:15:18 +00:00
Disable HMR for now
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user