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.3
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.4
Choose a head ref
  • 5 commits
  • 3 files changed
  • 1 contributor

Commits on Sep 8, 2022

  1. hotfix: typing hell

    atinux committed Sep 8, 2022
    Copy the full SHA
    26341f8 View commit details

Commits on Oct 7, 2022

  1. chore: update deps

    atinux committed Oct 7, 2022
    Copy the full SHA
    0171ce9 View commit details
  2. Copy the full SHA
    51cfad7 View commit details
  3. Revert "chore: update deps"

    This reverts commit 0171ce9.
    atinux committed Oct 7, 2022
    Copy the full SHA
    1bf0950 View commit details
  4. chore(release): 5.3.4

    atinux committed Oct 7, 2022
    Copy the full SHA
    e17a1bf View commit details
Showing with 13 additions and 2 deletions.
  1. +7 −0 CHANGELOG.md
  2. +1 −1 package.json
  3. +5 −1 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.4](https://github.com/nuxt-community/tailwindcss-module/compare/v5.3.3...v5.3.4) (2022-10-07)


### Bug Fixes

* remove content from tailwindConfig.content in development ([51cfad7](https://github.com/nuxt-community/tailwindcss-module/commit/51cfad7aa611f543c4b5ce0b5b9f24c08348e7d3))

### [5.3.3](https://github.com/nuxt-community/tailwindcss-module/compare/v5.3.2...v5.3.3) (2022-09-08)


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.3",
"version": "5.3.4",
"description": "TailwindCSS module for Nuxt",
"repository": "nuxt-community/tailwindcss-module",
"license": "MIT",
6 changes: 5 additions & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
@@ -137,7 +137,7 @@ export default defineNuxtModule<ModuleOptions>({
// Expose resolved tailwind config as an alias
// https://tailwindcss.com/docs/configuration/#referencing-in-javascript
if (moduleOptions.exposeConfig) {
const resolveConfig = await import('tailwindcss/resolveConfig.js').then(r => r.default || r)
const resolveConfig: any = await import('tailwindcss/resolveConfig.js').then(r => r.default || r)
const resolvedConfig = resolveConfig(tailwindConfig)
const template = addTemplate({
filename: 'tailwind.config.mjs',
@@ -204,6 +204,10 @@ 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()) {