diff options
Diffstat (limited to 'postcss.config.js')
| -rw-r--r-- | postcss.config.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 0000000..29569d9 --- /dev/null +++ b/postcss.config.js | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | const path = require('path'); | ||
| 2 | |||
| 3 | module.exports = (ctx) => ({ | ||
| 4 | plugins: [ | ||
| 5 | require('tailwindcss')(path.resolve(__dirname, 'tailwind.config.js')), | ||
| 6 | require('autoprefixer'), | ||
| 7 | ctx.env === 'production' && require('@fullhuman/postcss-purgecss')({ | ||
| 8 | content: [ | ||
| 9 | path.resolve(__dirname, 'templates/**/*.html') | ||
| 10 | ], | ||
| 11 | defaultExtractor: content => content.match(/[A-Za-z0-9-_:/]+/g) || [] | ||
| 12 | }) | ||
| 13 | ] | ||
| 14 | }) \ No newline at end of file | ||
