fix: purgeEnabled evaluating to true when config.purge.enabled is false
This commit is contained in:
parent
e52c59a758
commit
14113707df
1 changed files with 1 additions and 3 deletions
|
|
@ -20,9 +20,7 @@ function removeTailwindComments(css) {
|
|||
}
|
||||
|
||||
export default function purgeUnusedUtilities(config) {
|
||||
const purgeEnabled =
|
||||
_.get(config, 'purge.enabled', false) === true ||
|
||||
(config.purge !== undefined && process.env.NODE_ENV === 'production')
|
||||
const purgeEnabled = _.get(config, 'purge.enabled', config.purge !== undefined && process.env.NODE_ENV === 'production')
|
||||
|
||||
if (!purgeEnabled) {
|
||||
return removeTailwindComments
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue