Skip to content

Commit

Permalink
Only warn about conservative purge mode once per process
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan committed Sep 5, 2020
1 parent f3660ce commit 58781b5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/lib/purgeUnusedStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,12 @@ export default function purgeUnusedUtilities(config, configChanged) {
}

if (mode === 'conservative') {
log.warn([
'The `conservative` purge mode will be removed in Tailwind 2.0.',
'Please switch to the new `layers` mode instead.',
])
if (configChanged) {
log.warn([
'The `conservative` purge mode will be removed in Tailwind 2.0.',
'Please switch to the new `layers` mode instead.',
])
}
}

const layers =
Expand Down

0 comments on commit 58781b5

Please sign in to comment.