mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
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:
parent
205dc5127f
commit
f693ed0e96
@ -23,20 +23,25 @@ const server = new WebpackDevServer({
|
||||
allowedHosts: ".lens.app",
|
||||
host: "localhost",
|
||||
port: webpackDevServerPort,
|
||||
static: buildDir, // aka `devServer.contentBase` in webpack@4
|
||||
hot: "only", // use HMR only without errors
|
||||
static: {
|
||||
directory: buildDir,
|
||||
serveIndex: true,
|
||||
},
|
||||
hot: true,
|
||||
liveReload: false,
|
||||
// historyApiFallback: true,
|
||||
devMiddleware: {
|
||||
writeToDisk: true,
|
||||
index: "index.html",
|
||||
publicPath: "/build",
|
||||
},
|
||||
proxy: {
|
||||
"^/$": "/build/",
|
||||
},
|
||||
// proxy: {
|
||||
// "^/$": "/build/",
|
||||
// },
|
||||
client: {
|
||||
overlay: false, // don't show warnings and errors on top of rendered app view
|
||||
logging: "error",
|
||||
logging: "info",
|
||||
reconnect: true,
|
||||
},
|
||||
}, compiler);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user