0287a60296
Co-authored-by: Gregório Granado Magalhães <greg.magalhaes@gmail.com>
22 lines
476 B
JavaScript
22 lines
476 B
JavaScript
const tailwindcss = require('tailwindcss');
|
|
const autoprefixer = require('autoprefixer');
|
|
const cssnano = require('cssnano');
|
|
|
|
const mode = process.env.NODE_ENV;
|
|
const dev = mode === 'development';
|
|
|
|
const config = {
|
|
plugins: [
|
|
//Some plugins, like tailwindcss/nesting, need to run before Tailwind,
|
|
tailwindcss(),
|
|
//But others, like autoprefixer, need to run after,
|
|
autoprefixer(),
|
|
!dev &&
|
|
cssnano({
|
|
preset: 'default',
|
|
}),
|
|
],
|
|
};
|
|
|
|
module.exports = config;
|