1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Improvements and more stability in support HMR/live-reload

Signed-off-by: Roman <ixrock@gmail.com>

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman 2023-01-16 18:12:10 +02:00 committed by GitHub
parent 5c9dc034b7
commit 05d3b2efa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,19 +25,19 @@ const server = new WebpackDevServer({
host: "localhost",
port: webpackDevServerPort,
static: buildDir, // aka `devServer.contentBase` in webpack@4
hot: "only", // use HMR only without errors
hot: true,
liveReload: false,
historyApiFallback: true,
compress: true, // enable gzip for everything served
devMiddleware: {
writeToDisk: false,
index: "OpenLensDev.html",
publicPath: "/build",
},
proxy: {
"^/$": "/build/",
},
client: {
reconnect: true,
overlay: false, // don't show warnings and errors on top of rendered app view
logging: "error",
logging: "info",
},
}, compiler);