Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

webpack: Include devServer settings unconditionally.

Anders Kaseorg9131b4f282c9
diff --git a/webpack.config.ts b/webpack.config.ts
index add68ba5188..b8a837a56d4 100644
--- a/webpack.config.ts
+++ b/webpack.config.ts
@@ -260,18 +260,15 @@ export default (env?: string): webpack.Configuration[] => {
chunks: ["error-styles"],
}),
],
- };
-
- if (!production) {
- config.devServer = {
+ devServer: {
clientLogLevel: "error",
headers: {
"Access-Control-Allow-Origin": "*",
},
publicPath: "/webpack/",
stats: "errors-only",
- };
- }
+ },
+ };
const serverConfig: webpack.Configuration = {
mode: production ? "production" : "development",