Skip to content

Commit 58781b5

Browse files
committed
Only warn about conservative purge mode once per process
1 parent f3660ce commit 58781b5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/lib/purgeUnusedStyles.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,12 @@ export default function purgeUnusedUtilities(config, configChanged) {
6464
}
6565

6666
if (mode === 'conservative') {
67-
log.warn([
68-
'The `conservative` purge mode will be removed in Tailwind 2.0.',
69-
'Please switch to the new `layers` mode instead.',
70-
])
67+
if (configChanged) {
68+
log.warn([
69+
'The `conservative` purge mode will be removed in Tailwind 2.0.',
70+
'Please switch to the new `layers` mode instead.',
71+
])
72+
}
7173
}
7274

7375
const layers =

0 commit comments

Comments
 (0)