From aa335adb2b00f853bc978502061cbb81386be97c Mon Sep 17 00:00:00 2001 From: Hippo Date: Mon, 6 Apr 2020 22:07:34 +0530 Subject: [PATCH] Mark autoprefixer and cssnano as "production-only" --- postcss.config.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/postcss.config.js b/postcss.config.js index 19fbb94..1933687 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -4,10 +4,12 @@ const cssnano = require('cssnano') module.exports = { plugins: [ require('tailwindcss'), - require('autoprefixer'), - cssnano({ - preset: 'default' - }), + process.env.NODE_ENV === 'production' ? require('autoprefixer') : null, + process.env.NODE_ENV === 'production' + ? cssnano({ + preset: 'default' + }) + : null, purgecss({ content: ['./src/*.htm'], defaultExtractor: content => content.match(/[\w-/:]+(?