blob: e4fec19093b30d9e3b27cae5bacd5b470fba5a98 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
const purgecss = require('@fullhuman/postcss-purgecss')({
content: ['./public/**/*.html'],
defaultExtractor: content => content.match(/[A-Za-z0-9-_:/]+/g) || []
})
module.exports = {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
...process.env.NODE_ENV === 'production'
? [purgecss, require('cssnano')]
: []
]
}
|