Skip to content

Commit 1411370

Browse files
committed
fix: purgeEnabled evaluating to true when config.purge.enabled is false
1 parent e52c59a commit 1411370

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib/purgeUnusedStyles.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ function removeTailwindComments(css) {
2020
}
2121

2222
export default function purgeUnusedUtilities(config) {
23-
const purgeEnabled =
24-
_.get(config, 'purge.enabled', false) === true ||
25-
(config.purge !== undefined && process.env.NODE_ENV === 'production')
23+
const purgeEnabled = _.get(config, 'purge.enabled', config.purge !== undefined && process.env.NODE_ENV === 'production')
2624

2725
if (!purgeEnabled) {
2826
return removeTailwindComments

0 commit comments

Comments
 (0)