Tailwind 2 with PostCSS 8
PostCSS 8 is now possible thanks to @nuxt/postcss8! No more compatibility build to use the latest version of Tailwind now ✨
Make sure to read the installation steps.
Tailwind Just-In-Time
You may have heard about the Just-In-Time compilation mode of TailwindCSS, this version supports it, simply set the jit
option in your nuxt.config.js
:
export default {
buildModules: ['@nuxtjs/tailwindcss'],
tailwindcss: {
jit: true
}
}
With jit
option, our build on nuxtjs.org came from 40s to 7s ⚡