6e4c721be5
git-subtree-dir: blog/themes/tailwind git-subtree-mainline:d206a2812f
git-subtree-split:2cf446f4ef
14 lines
360 B
JavaScript
14 lines
360 B
JavaScript
const purgecss = require('@fullhuman/postcss-purgecss')({
|
|
content: ['./layouts/**/*.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')]
|
|
: []
|
|
]
|
|
}
|