diff --git a/web/postcss.config.js b/web/postcss.config.js index ec7e6949f5..ee23f7f171 100644 --- a/web/postcss.config.js +++ b/web/postcss.config.js @@ -4,7 +4,7 @@ const path = require("path"); const {media_breakpoints} = require("./src/css_variables"); -module.exports = ({file}) => ({ +const config = ({file}) => ({ plugins: [ (file.basename ?? path.basename(file)) === "dark_theme.css" && // Add postcss-import plugin with postcss-prefixwrap to handle @@ -22,3 +22,4 @@ module.exports = ({file}) => ({ }), ], }); +module.exports = config; diff --git a/web/webpack.config.ts b/web/webpack.config.ts index dc0b153b69..1b6034386c 100644 --- a/web/webpack.config.ts +++ b/web/webpack.config.ts @@ -13,7 +13,7 @@ import DebugRequirePlugin from "./debug-require-webpack-plugin"; import assets from "./webpack.assets.json"; import dev_assets from "./webpack.dev-assets.json"; -export default ( +const config = ( env: {minimize?: boolean; ZULIP_VERSION?: string} = {}, argv: {mode?: string}, ): webpack.Configuration[] => { @@ -272,3 +272,4 @@ export default ( return [frontendConfig, serverConfig]; }; +export default config;