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'
content: ['./src/*.htm'], ? purgecss({
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || [] content: ['./src/*.htm'],
}) defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || []
})
:null,
] ]
} }