roles-bot/apps/website/postcss.config.cjs

18 lines
321 B
JavaScript
Raw Normal View History

2023-04-08 14:16:23 +02:00
const tailwindcss = require("tailwindcss");
const autoprefixer = require("autoprefixer");
const cssnano = require("cssnano");
const mode = process.env.NODE_ENV;
const dev = mode === "development";
module.exports = {
plugins: [
tailwindcss,
autoprefixer,
!dev &&
cssnano({
preset: "default",
}),
],
};