Disable PurgeCSS in dev (works only for production)

This commit is contained in:
Badri Sunderarajan 2020-04-10 16:15:04 +05:30
parent b1408d17c6
commit 38d4619e07

View file

@ -11,9 +11,11 @@ module.exports = {
preset: 'default' preset: 'default'
}) })
: null, : null,
purgecss({ process.env.NODE_ENV === 'production'
? purgecss({
content: ['./src/*.htm'], content: ['./src/*.htm'],
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || [] defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || []
}) })
:null,
] ]
} }