mirror of https://github.com/zulip/zulip.git
eslint: Fix unicorn/no-anonymous-default-export.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
da2833319a
commit
3c57564213
|
@ -4,7 +4,7 @@ const path = require("path");
|
||||||
|
|
||||||
const {media_breakpoints} = require("./src/css_variables");
|
const {media_breakpoints} = require("./src/css_variables");
|
||||||
|
|
||||||
module.exports = ({file}) => ({
|
const config = ({file}) => ({
|
||||||
plugins: [
|
plugins: [
|
||||||
(file.basename ?? path.basename(file)) === "dark_theme.css" &&
|
(file.basename ?? path.basename(file)) === "dark_theme.css" &&
|
||||||
// Add postcss-import plugin with postcss-prefixwrap to handle
|
// Add postcss-import plugin with postcss-prefixwrap to handle
|
||||||
|
@ -22,3 +22,4 @@ module.exports = ({file}) => ({
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
module.exports = config;
|
||||||
|
|
|
@ -13,7 +13,7 @@ import DebugRequirePlugin from "./debug-require-webpack-plugin";
|
||||||
import assets from "./webpack.assets.json";
|
import assets from "./webpack.assets.json";
|
||||||
import dev_assets from "./webpack.dev-assets.json";
|
import dev_assets from "./webpack.dev-assets.json";
|
||||||
|
|
||||||
export default (
|
const config = (
|
||||||
env: {minimize?: boolean; ZULIP_VERSION?: string} = {},
|
env: {minimize?: boolean; ZULIP_VERSION?: string} = {},
|
||||||
argv: {mode?: string},
|
argv: {mode?: string},
|
||||||
): webpack.Configuration[] => {
|
): webpack.Configuration[] => {
|
||||||
|
@ -272,3 +272,4 @@ export default (
|
||||||
|
|
||||||
return [frontendConfig, serverConfig];
|
return [frontendConfig, serverConfig];
|
||||||
};
|
};
|
||||||
|
export default config;
|
||||||
|
|
Loading…
Reference in New Issue