Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nuxt-modules/tailwindcss
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.3.4
Choose a base ref
...
head repository: nuxt-modules/tailwindcss
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.3.5
Choose a head ref
  • 2 commits
  • 4 files changed
  • 2 contributors

Commits on Oct 7, 2022

  1. fix: prevent unwanted reloads on content change (#539)

    Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
    farnabaz and atinux authored Oct 7, 2022
    Copy the full SHA
    6290ea5 View commit details
  2. chore(release): 5.3.5

    atinux committed Oct 7, 2022
    Copy the full SHA
    9c50d0e View commit details
Showing with 12 additions and 5 deletions.
  1. +7 −0 CHANGELOG.md
  2. +1 −1 package.json
  3. +4 −0 src/hmr.ts
  4. +0 −4 src/module.ts
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [5.3.5](https://github.com/nuxt-community/tailwindcss-module/compare/v5.3.4...v5.3.5) (2022-10-07)


### Bug Fixes

* prevent unwanted reloads on content change ([#539](https://github.com/nuxt-community/tailwindcss-module/issues/539)) ([6290ea5](https://github.com/nuxt-community/tailwindcss-module/commit/6290ea58123df76eae75e7304b7c0c95300a43b7))

### [5.3.4](https://github.com/nuxt-community/tailwindcss-module/compare/v5.3.3...v5.3.4) (2022-10-07)


2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nuxtjs/tailwindcss",
"version": "5.3.4",
"version": "5.3.5",
"description": "TailwindCSS module for Nuxt",
"repository": "nuxt-community/tailwindcss-module",
"license": "MIT",
4 changes: 4 additions & 0 deletions src/hmr.ts
Original file line number Diff line number Diff line change
@@ -35,6 +35,10 @@ export default function (tailwindConfig: any = {}, rootDir: string, cssPath: str
}
})
})
if (ctx.file.includes('/content-cache/')) {
// @ts-ignore
return true
}
}
}
};
4 changes: 0 additions & 4 deletions src/module.ts
Original file line number Diff line number Diff line change
@@ -204,10 +204,6 @@ export default defineNuxtModule<ModuleOptions>({
postcssOptions.plugins = postcssOptions.plugins || {}
postcssOptions.plugins['tailwindcss/nesting'] = postcssOptions.plugins['tailwindcss/nesting'] ?? {}
postcssOptions.plugins['postcss-custom-properties'] = postcssOptions.plugins['postcss-custom-properties'] ?? {}
// Hot fix for Tailwind refreshing in dev when changing markdown files in content
if (nuxt.options.dev && tailwindConfig.content) {
tailwindConfig.content = tailwindConfig.content.filter((path: string) => !path.includes('/content-cache/parsed'))
}
postcssOptions.plugins.tailwindcss = tailwindConfig

if (isNuxt2()) {