Releases

v4.2.1 7/6/2021

  • fix: specify files to avoid rootDir watcher (#370)

v4.2.0 6/22/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

v4.0.3 6/5/2021

  • chore(deps): update all non-major dependencies (#318) · d7169e4
  • docs: Fix typo (#324) · 8cc122f

v4.1.3 6/5/2021

Fixes

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

Dependencies

Documentation

  • docs: move configPath info. (#349) · e94b34f
  • docs: fix edit on GH link (#358) · 84172ee

v4.1.2 6/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.1 5/7/2021

  • Remove @tailwindcss/jit dependency (#340)

v4.1.0 5/5/2021

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

v4.0.1 3/16/2021

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

v4.0.0 3/15/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-0 3/5/2021

Features

v3.4.3 3/10/2021

Bug Fixes

  • Use nuxt resolver to import tailwind.config.js (#286) (62526cf) (resolves nuxt/nuxt.js#8971)

v3.4.2 12/22/2020

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

v3.4.1 12/18/2020

  • fix(middleware): use cjs syntax (#236) · f35b1cc

v3.4.0 12/17/2020

Features

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

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

v3.3.4 12/11/2020

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

v3.3.3 12/4/2020

Bug fixes

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

v3.3.2 12/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.1 12/3/2020

Bug Fixes

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

v3.3.0 12/2/2020

Features

v3.2.0 10/22/2020

Features

v3.1.0 9/25/2020

Features

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

v3.0.2 8/25/2020

Bug Fixes

  • handle HMR for tailwind config (8c26472), closes #157

v3.0.1 8/24/2020

v3.0.0 8/5/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

v2.1.1 7/29/2020

Upgrade Tailwindcss to v1.6.0

v2.1.0 7/20/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 🐞

v2.0.0 4/30/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.js
module.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'
    ]
  }
}

v1.4.1 4/22/2020

  • Upgrade dependencies and use Tailwind v1.3.4

v1.4.0 3/11/2020

Features

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

See demo and source code

Chore

  • Upgrade dependencies

v1.3.3 2/18/2020

  • Fix: don't purge base and components (#65 by @hecktarzuli)
  • Upgrade dependencies (#63)