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: v6.1.2
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: v6.1.3
Choose a head ref
  • 3 commits
  • 4 files changed
  • 3 contributors

Commits on Nov 2, 2022

  1. docs: Brackets missing in the nuxt.config.ts. (#556)

    Mohamed jinas authored Nov 2, 2022
    Copy the full SHA
    90696c5 View commit details

Commits on Nov 3, 2022

  1. fix: css option in object format error. (#557)

    Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
    mena234 and atinux authored Nov 3, 2022
    Copy the full SHA
    2408a1e View commit details
  2. chore(release): 6.1.3

    atinux committed Nov 3, 2022
    Copy the full SHA
    4841163 View commit details
Showing with 13 additions and 5 deletions.
  1. +7 −0 CHANGELOG.md
  2. +3 −3 docs/content/1.getting-started/1.setup.md
  3. +1 −1 package.json
  4. +2 −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.

### [6.1.3](https://github.com/nuxt-community/tailwindcss-module/compare/v6.1.2...v6.1.3) (2022-11-03)


### Bug Fixes

* css option in object format error. ([#557](https://github.com/nuxt-community/tailwindcss-module/issues/557)) ([2408a1e](https://github.com/nuxt-community/tailwindcss-module/commit/2408a1edcac909bf29a438b5908e9246392dc105))

### [6.1.2](https://github.com/nuxt-community/tailwindcss-module/compare/v6.1.1...v6.1.2) (2022-10-28)


6 changes: 3 additions & 3 deletions docs/content/1.getting-started/1.setup.md
Original file line number Diff line number Diff line change
@@ -23,9 +23,9 @@ npm install --save-dev @nuxtjs/tailwindcss

::code-group
```ts [nuxt.config (Nuxt 3)]
export default defineNuxtConfig{
modules: ['@nuxtjs/tailwindcss']
}
export default defineNuxtConfig({
modules: ['@nuxtjs/tailwindcss']
})
```

```ts [nuxt.config (Nuxt 2)]
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": "6.1.2",
"version": "6.1.3",
"description": "TailwindCSS module for Nuxt",
"repository": "nuxt-community/tailwindcss-module",
"license": "MIT",
3 changes: 2 additions & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
@@ -189,7 +189,8 @@ export default defineNuxtModule<ModuleOptions>({
resolvedCss = createResolver(import.meta.url).resolve('runtime/empty.css')
}
nuxt.options.css = nuxt.options.css ?? []
const resolvedNuxtCss = await Promise.all(nuxt.options.css.map(p => resolvePath(p)))

const resolvedNuxtCss = await Promise.all(nuxt.options.css.map((p: any) => resolvePath(p.src ?? p)))

// Inject only if this file isn't listed already by user (e.g. user may put custom path both here and in css):
if (!resolvedNuxtCss.includes(resolvedCss)) {