Skip to content

Releases: nuxt-modules/tailwindcss

Nuxt 3 and Tailwind CSS 3 support

08 Feb 00:05
@pi0 pi0
Compare
Choose a tag to compare
Pre-release

This is a prerelease

You can try v5 by installing @nuxtjs/tailwindcss@5.0.0-4 with the package manager of your choice.

🐛 Some bugs are expected with this release. Please open an issue if had trouble with v5 upgrade.

▶️ Play online

⚠ BREAKING CHANGES

  • Nuxt 3 is supported
  • TailwindCSS upgraded to v3 (thanks to PR by @dargmuesli 💚 ). Read more about changes in Tailwind upgrade guide.
  • JIT mode is enabled by default. You can remove jit option if was already using
  • ~tailwind.config import renamed to #tailwind-config when importing the generated Tailwind config in the application
  • (Module authors) tailwindcss:config hook is being called when modules are being installed for more predictable building behavior. Any module extending tailwind config should be installed before tailwindcss module

Features

v4.2.1

06 Jul 16:06
8b71bfa
Compare
Choose a tag to compare
  • fix: specify files to avoid rootDir watcher (#370)

v4.2.0

22 Jun 16:29
Compare
Choose a tag to compare
  • docs: Improve clarity of exposeConfig content (#363) · 6bcf442
  • feat: set cssPath false to disable adding the CSS (#362) · 695d068
  • chore(deps): upgrade deps · 0dde4b4

v4.1.3

05 Jun 09:17
Compare
Choose a tag to compare

Fixes

  • fix: add ts extension for purging components folder (#356) · 8328c52
  • fix incorrect link (bottom right) (#353) · dd45c32

Dependencies

Documentation

v4.1.2

05 Jun 09:09
Compare
Choose a tag to compare
  • chore: remove package-lock.json · 6d3bdd1
  • chore: improve deprecation message to be generic about config specification · 50b3fd4
  • chore(pkg): add "prepack" script (closes #347) · 42d4fae
  • docs: change jit link since tailwind-jit is now native to tailwindcss (#345) · e10b598

v4.1.1

07 May 12:15
Compare
Choose a tag to compare
  • Remove @tailwindcss/jit dependency (#340)

v4.1.0

05 May 15:23
Compare
Choose a tag to compare

Update tailwind to 2.1 to natively support JIT (#326) (dfa989a)

v4.0.3

05 Jun 09:19
Compare
Choose a tag to compare

v4.0.1

16 Mar 00:13
Compare
Choose a tag to compare

Switch from postcss-nested to postcss-nesting to respect CSS Nesting spec we supported with version 3 of the module.

v4.0.0

15 Mar 23:06
Compare
Choose a tag to compare

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 ⚡

https://tailwindcss.nuxtjs.org