zulip/postcss.config.js

12 lines
380 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": {},
autoprefixer: {},
cssnano: options.env === "production" ? {} : false,
},
});