Crossword-Fable/postcss.config.js
2022-04-28 17:04:04 -04:00

15 lines
No EOL
339 B
JavaScript

const isDevelopment = process.env.WEBPACK_SERVE === 'true';
const cssnano = require('cssnano')({
preset: ['default', {
discardComments: { removeAll: true }
}]
})
module.exports = {
plugins: [
require('tailwindcss')
, require('autoprefixer')
, !isDevelopment && cssnano
].filter(Boolean)
};