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

26 lines
649 B
JavaScript

const { version } = require("./package.json");
let plugins = [
require("postcss-banner")({
banner: `chota.css v${version} | MIT License | https://github.com/jenil/chota`,
important: true,
}),
require("postcss-import")({
plugins: [require("stylelint")({ fix: true, formatter: "compact" })],
}),
require("autoprefixer")(),
require("postcss-reporter")({ clearReportedMessages: true }),
];
// if (process.env.NODE_ENV == 'production') plugins.push(require("postcss-csso"))
if (process.env.NODE_ENV == "production")
plugins.push(
require("cssnano")({
preset: "default",
})
);
module.exports = {
plugins,
};