Only warn about conservative purge mode once per process

This commit is contained in:
Adam Wathan 2020-09-05 17:41:05 -04:00
parent f3660ceed3
commit 58781b517d

View File

@ -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 =