Skip to content

warn - The purge/content options have changed in Tailwind CSS v3.0. #6019

Answered by NovusOpus
alaadahmed asked this question in Help
Discussion options

You must be logged in to vote

Hi, In Tailwind CSS V3 purge has changed to content.

Quote from the Tailwind CSS V3 Announcement:

purge has changed to content
The JIT engine doesn't actually use PurgeCSS under-the-hood, so purge doesn't feel like the right name for these configuration options anymore.

Now this configuration should look like this:

// tailwind.config.js
module.exports = {
  content: ['./src/**/*.html' /* ... */],
}

We've tried really hard to make Tailwind smart enough to understand the old configuration as well, so with any luck your existing configuration should still work, but you'll want to update to the new format to silence the annoying console warnings we blast you with.

So you need to update your…

Replies: 11 comments 27 replies

Comment options

You must be logged in to vote
4 replies
@hi-reeve
Comment options

@NovusOpus
Comment options

@ter1203
Comment options

@Kamsi-yonna
Comment options

Answer selected by alaadahmed
Comment options

You must be logged in to vote
1 reply
@ter1203
Comment options

Comment options

You must be logged in to vote
7 replies
@silwals
Comment options

@NovusOpus
Comment options

@akashrajum
Comment options

@reza869
Comment options

@agileben
Comment options

Comment options

You must be logged in to vote
2 replies
@adamwathan
Comment options

@eugenevk
Comment options

Comment options

You must be logged in to vote
7 replies
@ErickSharp
Comment options

@silwals
Comment options

@Mod5ied
Comment options

@kuroda
Comment options

@asher-dev
Comment options

Comment options

You must be logged in to vote
2 replies
@jhonyjss
Comment options

@Khezcute
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Bergrebell
Comment options

Comment options

You must be logged in to vote
1 reply
@vivekshotti
Comment options

Comment options

You must be logged in to vote
2 replies
@akashrajum7
Comment options

@maninak
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet