about summary refs log tree commit diff
path: root/website/blog/themes/tailwind/postcss.config.js
blob: 6efcb774fa7c4b9c885d9a008836f927128c7d7b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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')]
      : []
  ]
}