Skip to content
This repository has been archived by the owner on May 8, 2021. It is now read-only.

Updated example for Next.js 9.2 #50

Merged
merged 5 commits into from
Jan 24, 2020
Merged

Conversation

emilbryggare
Copy link
Contributor

This is PR includes an updated example for Next.js 9.2.

With Next.js 9.2 importing next-css is not necessary as CSS imports are included out of the box. The syntax for the PostCSS plugin config is also updated.

I also added a short explanation for PurgeCSS to the readme.

@depsimon
Copy link

Works great! Thanks

@adamwathan adamwathan merged commit 974ac28 into tailwindlabs:master Jan 24, 2020
@adamwathan
Copy link
Member

Thanks!

@nickisnoble
Copy link

A few questions:

  1. Isn't PurgeCSS already included with the latest versions of tailwind?
  2. Isn't Autoprefixer already included by default in Next 9.2?
  3. Is there a way to get this working using the preferred @tailwind + @apply postCSS directive stuff?

@adamwathan
Copy link
Member

  1. PurgeCSS was not included with Tailwind on January 23 when this was last updated, so we will update this eventually. It's on our calendar as a project to start maintaining these guides in a more official way, until like last week we just didn't have enough people on the team to even consider it.

  2. Autoprefixer is included by default but if you override the PostCSS config you have to add it yourself (which makes sense, since Autoprefixer is added via PostCSS and overriding the config means you want to provide your own config).

  3. Not sure what you mean, all that stuff works perfectly fine with this setup.

@nickisnoble
Copy link

So it does! Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants