Only warn about conservative purge mode once per process
This commit is contained in:
parent
f3660ceed3
commit
58781b517d
1 changed files with 6 additions and 4 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue