snipette-wripro-site/postcss.config.js

19 lines
471 B
JavaScript
Raw Normal View History

2020-04-06 12:18:34 -04:00
const purgecss = require('@fullhuman/postcss-purgecss')
const cssnano = require('cssnano')
module.exports = {
plugins: [
require('tailwindcss'),
process.env.NODE_ENV === 'production' ? require('autoprefixer') : null,
process.env.NODE_ENV === 'production'
? cssnano({
preset: 'default'
})
: null,
2020-04-06 12:18:34 -04:00
purgecss({
content: ['./src/*.htm'],
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || []
})
]
}