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

20 lines
460 B
JavaScript
Raw Normal View History

2017-11-16 01:14:48 +03:00
let plugins = [
require("postcss-import")({
plugins: [require("stylelint")({ fix: true, formatter: "compact" })],
}),
require("autoprefixer")(),
require("postcss-reporter")({ clearReportedMessages: true }),
2017-11-16 01:14:48 +03:00
];
// if (process.env.NODE_ENV == 'production') plugins.push(require("postcss-csso"))
if (process.env.NODE_ENV == "production")
plugins.push(
require("cssnano")({
preset: "default",
})
);
2017-11-16 01:14:48 +03:00
module.exports = {
plugins,
};