blob: 29569d9d748b0f4c79f65af06d7476278227441d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
const path = require('path');
module.exports = (ctx) => ({
plugins: [
require('tailwindcss')(path.resolve(__dirname, 'tailwind.config.js')),
require('autoprefixer'),
ctx.env === 'production' && require('@fullhuman/postcss-purgecss')({
content: [
path.resolve(__dirname, 'templates/**/*.html')
],
defaultExtractor: content => content.match(/[A-Za-z0-9-_:/]+/g) || []
})
]
})
|