diff options
author | William Carroll <wpcarro@gmail.com> | 2019-11-15T10·04-0300 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2019-11-15T10·04-0300 |
commit | d0b29c4ccfd92d0f3100a2e44c8ff2856ab10021 (patch) | |
tree | b9361489b77fc2d826f513b8e5e804f32f53d4a9 /postcss.config.js |
Initial commit
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 000000000000..e4fec19093b3 --- /dev/null +++ b/postcss.config.js @@ -0,0 +1,14 @@ +const purgecss = require('@fullhuman/postcss-purgecss')({ + content: ['./public/**/*.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')] + : [] + ] +} |