github nuxt-modules/tailwindcss v6.12.0

16 days ago

compare changes

It's here. First-class HMR 🔥

After working on rewriting how the config gets loaded, the module went through a big internal rewrite for us to support native module invalidation for your configuration files; this means that you can make changes your Tailwind configuration files without restarting your Nuxt server. This comes with ZERO breaking changes, but you may face a warning in your console that may not allow you to use this latest feature:

image

To eliminate this, check where you are using Tailwind plugins in your project (either in nuxt.config, a hook, or a module such as nuxt/ui), and rather than passing these plugins into the inline module configuration, create a separate config file that you can pass to the configPath option of the module (not required if you provide this in tailwind.config as the module already picks that). If you are unable to resolve this, you can also specify quiet: true to the module configuration while a dependency module may provide a release with this update.

We have tested this rewrite intensively and will appreciate feedback on these changes, delivering any bugfixes with this as soon as possible. Thank you for your patience ❤️

🚀 Enhancements

  • First class HMR (#818)

📖 Documentation

  • Update configuration docs (#827)
  • Use new nuxi module add command in installation (#829)
  • Update classRegex, closes #824 (#824)

🏡 Chore

  • Remove unneeded postcss-custom-properties plugin (#836)
  • Migrate to eslint v9 (#834)
  • Update deps (87fb919)

❤️ Contributors

Don't miss a new tailwindcss release

NewReleases is sending notifications on new releases.