hmr fixes (live-reload only atm) with broken iframe current page location while reloading, part of #6948

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2023-02-03 14:37:28 +02:00
1 parent 205dc5127f
commit f693ed0e96
1 file changed
+11 -6
+11 -6
View File
@@ -23,20 +23,25 @@ const server = new WebpackDevServer({
allowedHosts: ".lens.app", allowedHosts: ".lens.app",
host: "localhost", host: "localhost",
port: webpackDevServerPort, port: webpackDevServerPort,
static: buildDir, // aka `devServer.contentBase` in webpack@4 static: {
hot: "only", // use HMR only without errors directory: buildDir,
serveIndex: true,
},
hot: true,
liveReload: false, liveReload: false,
// historyApiFallback: true,
devMiddleware: { devMiddleware: {
writeToDisk: true, writeToDisk: true,
index: "index.html", index: "index.html",
publicPath: "/build", publicPath: "/build",
}, },
proxy: { // proxy: {
"^/$": "/build/", // "^/$": "/build/",
}, // },
client: { client: {
overlay: false, // don't show warnings and errors on top of rendered app view overlay: false, // don't show warnings and errors on top of rendered app view
logging: "error", logging: "info",
reconnect: true,
}, },
}, compiler); }, compiler);