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.

postcss: Convert plugins object to an array.

Rohitt Vashishtha62188e803684
diff --git a/postcss.config.js b/postcss.config.js
index 06c66003a71..a871e848a43 100644
--- a/postcss.config.js
+++ b/postcss.config.js
@@ -3,15 +3,12 @@
const {media_breakpoints} = require("./static/js/css_variables");
module.exports = {
- plugins: {
- // Warning: despite appearances, order is significant
- "postcss-nested": {},
- "postcss-extend-rule": {},
- "postcss-simple-vars": {
- variables: media_breakpoints,
- },
- "postcss-calc": {},
- "postcss-media-minmax": {},
- autoprefixer: {},
- },
+ plugins: [
+ require("postcss-nested"),
+ require("postcss-extend-rule"),
+ require("postcss-simple-vars")({variables: media_breakpoints}),
+ require("postcss-calc"),
+ require("postcss-media-minmax"),
+ require("autoprefixer"),
+ ],
};