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:
parent
5c9dc034b7
commit
05d3b2efa3
@ -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);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user