1
0
mirror of https://github.com/jenil/chota.git synced 2023-08-10 21:13:07 +03:00
chota/postcss.config.js

22 lines
411 B
JavaScript

let plugins = [
require("postcss-import"),
require("autoprefixer")()
];
// if (process.env.NODE_ENV == 'production') plugins.push(require("postcss-csso"))
if (process.env.NODE_ENV == "production")
plugins.push(
require("cssnano")({
preset: "default"
})
);
if (process.env.VARIANT == "100")
plugins.push(
require("postcss-revert-rem-size")({})
);
module.exports = {
plugins
};