Changelog

Discover the latest updates.


Bug Fixes

  • use correct defuArrayFn and fix srcDir error (cef3a9f)

Full Changelog: https://github.com/nuxt-community/tailwindcss-module/compare/v5.1.1...v5.1.2

👍 3😂 1

v5.1.2

@Atinux

May 23, 2022

What's Changed

New Contributors

Full Changelog: https://github.com/nuxt-community/tailwindcss-module/compare/v5.1.0...v5.1.1

v5.1.1

@Atinux

May 23, 2022

What's Changed

New Contributors

Full Changelog: https://github.com/nuxt-community/tailwindcss-module/compare/v5.0.4...v5.1.0

v5.1.0

@Atinux

May 23, 2022

What's Changed

New Contributors

Full Changelog: https://github.com/nuxt-community/tailwindcss-module/compare/v5.0.3...v5.0.4

👍 5

v5.0.4

@Atinux

May 2, 2022

What's Changed

New Contributors

Full Changelog: https://github.com/nuxt-community/tailwindcss-module/compare/v5.0.2...v5.0.3

👍 1

v5.0.3

@Atinux

April 20, 2022

Stable version is out and ready for feedback 🎊

Please read carefully the v5.0.0-0 release notes.

What's included

New Contributors

Full Changelog: https://github.com/nuxt-community/tailwindcss-module/compare/v4.2.1...v5.0.0

👍 8🎉 11❤️ 1🚀 4

v5.0.0

@Atinux

March 8, 2022

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

👍 26😂 7🎉 29❤️ 15🚀 15
  • fix: specify files to avoid rootDir watcher (#370)
😂 3🎉 8

v4.2.1

@Atinux

July 6, 2021

  • docs: Improve clarity of exposeConfig content (#363) · 6bcf442
  • feat: set cssPath false to disable adding the CSS (#362) · 695d068
  • chore(deps): upgrade deps · 0dde4b4
👍 16😂 1❤️ 1

v4.2.0

@Atinux

June 22, 2021

Fixes

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

Dependencies

Documentation

v4.1.3

@Atinux

June 5, 2021

  • 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.2

@Atinux

June 5, 2021

  • Remove @tailwindcss/jit dependency (#340)

v4.1.1

@Atinux

May 7, 2021

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

v4.1.0

@Atinux

May 5, 2021

👍 1

v4.0.3

@Atinux

June 5, 2021

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

v4.0.1

@Atinux

March 16, 2021

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

v4.0.0

@Atinux

March 15, 2021

Features

v4.0.0-0

@pi0

March 5, 2021

Bug Fixes

v3.4.3

@pi0

March 10, 2021

  • Upgrade to Tailwind Config Viewer v1.4.0 (#237) · c18498f

v3.4.2

@Atinux

December 22, 2020

v3.4.1

@Atinux

December 18, 2020

Features

Integration with tailwind-config-viewer is live, see #232, thank you @rogden !

https://tailwindcss.nuxtjs.org/tailwind-viewer/

v3.4.0

@Atinux

December 17, 2020

  • fix: addTemplate call compats low version nuxt (#225) · b18380d
  • chore(deps): update all non-major dependencies (#222) · 4641a90

v3.3.4

@Atinux

December 11, 2020

Bug fixes

  • fix: Remove duplicated border-2 class from copy-box (#221) · c84c8be

v3.3.3

@Atinux

December 4, 2020

Bug fixes

  • fix(lib): check listeners value before displaying url · 431eafc

Misc

  • docs: update tailwind v2 using yarn · 8ea24c6
  • chore(deps): update devdependency eslint-plugin-vue to ^7.2.0 (#219) · 87b3a6c

v3.3.2

@Atinux

December 4, 2020

Bug Fixes

  • handle color as string and smarted light/dark detection (6058ea8)

v3.3.1

@Atinux

December 3, 2020

Features

v3.3.0

@Atinux

December 2, 2020

Features

v3.2.0

@Atinux

October 22, 2020

Features

  • purge: handle custom srcDir and support TS (#170) (bf3e0db)

v3.1.0

@Atinux

September 25, 2020

Bug Fixes

v3.0.2

@Atinux

August 25, 2020

v3.0.1

@Atinux

August 24, 2020

⚠ BREAKING CHANGES

  • build.postcss.plugins as Array is not supported anymore

Features

We now have a documentation website: https://tailwindcss.nuxtjs.org

  • The module will not create the tailwind files anymore but load them if they exist
  • @nuxtjs/tailwindcss now configures the purge option of TailwindCSS and let the user extend it easily to keep a minimal tailwind.config.js template
  • Nuxt modules can easily extend the user tailwind config (adding Typography plugin, settings colors, etc)
  • Updating the tailwind.config.js will actually do a full Nuxt server restart but will actually fix the plugins update issue

v3.0.0

@Atinux

August 5, 2020

Upgrade Tailwindcss to v1.6.0

v2.1.1

@Atinux

July 29, 2020

Misc ✨

  • Upgrade dependencies (TailwindCSS to v1.5.1).

If a new version of TailwindCSS goes out, you can always install it with npm install --save-dev tailwindcss, the module will use it directly.

Bug fixes 🐞

  • Force production env for postcss on nuxt build (977d605)

v2.1.0

@Atinux

July 20, 2020

Version 2.0 is out, including TailwindCSS v1.4 ✨

This version is a breaking change since we actually removed nuxt-purgecss dependency, since Tailwind 1.4 has a purge option now!

If you are upgrading, take a look at the new tailwind.config.js:

// tailwind.config.jsmodule.exports = {  /* ... your actual config */,  purge: {    // Learn more on https://tailwindcss.com/docs/controlling-file-size/#removing-unused-css    enabled: process.env.NODE_ENV === 'production',    content: [      'components/**/*.vue',      'layouts/**/*.vue',      'pages/**/*.vue',      'plugins/**/*.js',      'nuxt.config.js'    ]  }}

v2.0.0

@Atinux

April 30, 2020

  • Upgrade dependencies and use Tailwind v1.3.4

v1.4.1

@Atinux

April 22, 2020

Features

  • Add exposeConfig option to reference resolved config in javascript runtime (PR #69)

See demo and source code

Chore

  • Upgrade dependencies

v1.4.0

@Atinux

March 11, 2020

v1.3.3

@Atinux

February 18, 2020

  • Upgrade to Tailwind v1.2 (#60)
  • Fix override PurgeCSS "enabled" option (#59)

v1.3.2

@Atinux

February 6, 2020

Fix a regression: PurgeCSS stopped working after upgrade to v.1.3.0

Related Issues: #52 and #54

v1.3.1

@Atinux

January 15, 2020

  • Upgrade TailwindCSS to v1.1.4
  • Add purgeCSSInDev option to activate purgeCSS in development mode

v1.3.0

@Atinux

January 6, 2020

  • Upgrade TailwindCSS to 1.1.3
  • Add support for deprecated build.postcss.plugins syntax (#36)

v1.2.0

@Atinux

November 5, 2019

  • Upgrade to Tailwind v1.1.0
  • Remove log of postcss preset (fix #20)
  • Use nuxt.hook('build:before') to work when used as middleware (fix #23)

v1.1.2

@Atinux

August 8, 2019

Misc

  • refactor: module and increase coverage (#5)

v1.1.0

@Atinux

June 12, 2019

v0.1.1

@Atinux

June 11, 2019

v0.1.0

@Atinux

June 6, 2019

v0.0.4

@Atinux

June 5, 2019