tvl-depot/postcss.config.js

15 lines
360 B
JavaScript
Raw Normal View History

2019-11-15 11:04:59 +01:00
const purgecss = require('@fullhuman/postcss-purgecss')({
2019-11-19 19:36:13 +01:00
content: ['./layouts/**/*.html'],
2019-11-15 11:04:59 +01:00
defaultExtractor: content => content.match(/[A-Za-z0-9-_:/]+/g) || []
})
module.exports = {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
...process.env.NODE_ENV === 'production'
? [purgecss, require('cssnano')]
: []
]
}