commit: e80ed386be1522c03f2dbc7b719b2c6a5b920b16
parent: 60b413d02c4be5b3f24ff984e43090620d9a59e1
Author: Shpuld Shpludson <shp@cock.li>
Date: Sun, 7 Jul 2019 10:20:36 +0000
Merge branch 'fix-hmr' into 'develop'
fix hot reload always reloading the page
See merge request pleroma/pleroma-fe!874
Diffstat:
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/build/dev-server.js b/build/dev-server.js
@@ -31,8 +31,13 @@ var hotMiddleware = require('webpack-hot-middleware')(compiler)
// force page reload when html-webpack-plugin template changes
compiler.plugin('compilation', function (compilation) {
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
- hotMiddleware.publish({ action: 'reload' })
- cb()
+ // FIXME: This supposed to reload whole page when index.html is changed,
+ // however now it reloads entire page on every breath, i suppose the order
+ // of plugins changed or something. It's a minor thing and douesn't hurt
+ // disabling it, constant reloads hurt much more
+
+ // hotMiddleware.publish({ action: 'reload' })
+ // cb()
})
})