Files
zulip/postcss.config.js
Anders Kaseorg ad116cac4c postcss: Add postcss-calc plugin.
As foreshadowed by commit d0634181b5
(#13115).

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2019-09-02 21:48:05 -07:00

13 lines
408 B
JavaScript

module.exports = ({ file, options }) => ({
parser: file.extname === ".scss" ? "postcss-scss" : false,
plugins: {
// Warning: despite appearances, order is significant
"postcss-nested": {},
"postcss-extend-rule": {},
"postcss-simple-vars": {},
"postcss-calc": {},
autoprefixer: {},
cssnano: options.env === "production" ? {} : false,
},
});