1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
This commit is contained in:
Roman 2023-05-09 13:28:33 +00:00 committed by GitHub
commit 9a285cfad4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);