foundation.mozilla.org/postcss.config.js

26 строки
421 B
JavaScript

let commonPlugins = [
require("postcss-import"),
require("tailwindcss"),
require("autoprefixer"),
];
let prodPlugins = [
require("cssnano")({
preset: [
"default",
{
discardComments: {
removeAll: true,
},
},
],
}),
];
module.exports = {
plugins:
process.env.NODE_ENV === "production"
? commonPlugins.concat(prodPlugins)
: commonPlugins,
};