v6.12.0
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 to 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:
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
- Inesh Bose
- Daniel Roe (@danielroe)
- Scott Rees (@reesscot)
- Selemondev (@selemondev)