mirror of https://github.com/zulip/zulip.git
webpack: Include devServer settings unconditionally.
These are unused in production but there’s no harm in including them. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
5006255069
commit
9131b4f282
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue