mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
It’s about as fast as node-sass (faster, according to their benchmarks) and more flexible. Autoprefixer is neat: we can now go delete all our -moz-, -webkit-, etc. lines and have them autogenerated as necessary based on .browserslistrc. Signed-off-by: Anders Kaseorg <[email protected]>
12 lines
380 B
JavaScript
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,
|
|
},
|
|
});
|