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

possible improvements and stability in support HMR within webpack-dev-server config

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman 2023-01-16 16:32:53 +02:00
parent c361852dd2
commit 4e11e2fe15

View File

@ -25,19 +25,19 @@ const server = new WebpackDevServer({
host: "localhost", host: "localhost",
port: webpackDevServerPort, port: webpackDevServerPort,
static: buildDir, // aka `devServer.contentBase` in webpack@4 static: buildDir, // aka `devServer.contentBase` in webpack@4
hot: "only", // use HMR only without errors hot: true,
liveReload: false, liveReload: false,
historyApiFallback: true,
compress: true, // enable gzip for everything served
devMiddleware: { devMiddleware: {
writeToDisk: false, writeToDisk: false,
index: "OpenLensDev.html", index: "OpenLensDev.html",
publicPath: "/build", publicPath: "/build",
}, },
proxy: {
"^/$": "/build/",
},
client: { client: {
reconnect: true,
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",
}, },
}, compiler); }, compiler);