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.0.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: v5.0.3
Choose a head ref
  • 6 commits
  • 7 files changed
  • 4 contributors

Commits on Apr 8, 2022

  1. Copy the full SHA
    1bf485f View commit details
  2. Copy the full SHA
    e7bdc00 View commit details

Commits on Apr 9, 2022

  1. Copy the full SHA
    ca95dda View commit details
  2. Copy the full SHA
    56033ce View commit details

Commits on Apr 20, 2022

  1. fix: tailwind viewer url (#453)

    Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
    shba007 and atinux authored Apr 20, 2022
    Copy the full SHA
    d35b39c View commit details
  2. chore(release): 5.0.3

    atinux committed Apr 20, 2022
    Copy the full SHA
    04b9ca8 View commit details
Showing with 19 additions and 30 deletions.
  1. +7 −0 CHANGELOG.md
  2. +1 −1 README.md
  3. +1 −24 docs/content/2.setup.md
  4. +4 −2 docs/content/tailwind/1.config.md
  5. +1 −1 package.json
  6. +1 −1 playground/nuxt.config.ts
  7. +4 −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.0.3](https://github.com/nuxt-community/tailwindcss-module/compare/v5.0.2...v5.0.3) (2022-04-20)


### Bug Fixes

* tailwind viewer url ([#453](https://github.com/nuxt-community/tailwindcss-module/issues/453)) ([d35b39c](https://github.com/nuxt-community/tailwindcss-module/commit/d35b39c6b20a89f1005c383dff003137af0d5b66))

### [5.0.2](https://github.com/nuxt-community/tailwindcss-module/compare/v5.0.1...v5.0.2) (2022-03-16)


2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ Copyright (c) Nuxt Community
[npm-version-src]: https://img.shields.io/npm/v/@nuxtjs/tailwindcss/latest.svg
[npm-version-href]: https://npmjs.com/package/@nuxtjs/tailwindcss

[npm-downloads-src]: https://img.shields.io/npm/dt/@nuxtjs/tailwindcss.svg
[npm-downloads-src]: https://img.shields.io/npm/dm/@nuxtjs/tailwindcss.svg
[npm-downloads-href]: https://npmjs.com/package/@nuxtjs/tailwindcss

[github-actions-ci-src]: https://github.com/nuxt-community/tailwindcss-module/workflows/ci/badge.svg
25 changes: 1 addition & 24 deletions docs/content/2.setup.md
Original file line number Diff line number Diff line change
@@ -6,29 +6,6 @@ category: Getting started

> Using TailwindCSS in your Nuxt project is only one command away ✨
<d-alert>

Please make sure to update your Nuxt version to be minimum [v2.15.3](https://github.com/nuxt/nuxt.js/releases/tag/v2.15.3).

</d-alert>

<d-code-group>
<d-code-block label="Yarn" active>

```bash
yarn upgrade nuxt
```

</d-code-block>
<d-code-block label="NPM">

```bash
npm update nuxt
```

</d-code-block>
</d-code-group>


## Installation

@@ -55,7 +32,7 @@ Please make sure to update your Nuxt version to be minimum [v2.15.3](https://git

```ts [nuxt.config.js]
export default {
buildModules: ['@nuxtjs/tailwindcss']
modules: ['@nuxtjs/tailwindcss']
}
```

6 changes: 4 additions & 2 deletions docs/content/tailwind/1.config.md
Original file line number Diff line number Diff line change
@@ -17,13 +17,15 @@ category: Tailwind CSS
`components/**/*.{vue,js}`,
`layouts/**/*.vue`,
`pages/**/*.vue`,
`composables/**/*.{js,ts}`,
`plugins/**/*.{js,ts}`,
`nuxt.config.{js,ts}`
`App.{js,ts,vue}`,
`app.{js,ts,vue}`
]
}
```

> The file is [available on GitHub](https://github.com/nuxt-community/tailwindcss-module/blob/main/lib/files/tailwind.config.js)
> The file is [available on GitHub](https://github.com/nuxt-community/tailwindcss-module/blob/main/src/tailwind.config.ts)
You can learn more about the [Tailwind configuration](https://tailwindcss.com/docs/configuration) and the [content configuration](https://tailwindcss.com/docs/content-configuration) on Tailwind docs.

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.0.2",
"version": "5.0.3",
"description": "TailwindCSS module for Nuxt",
"repository": "nuxt-community/tailwindcss-module",
"license": "MIT",
2 changes: 1 addition & 1 deletion playground/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineNuxtConfig } from 'nuxt3'
import tailwindModule from '..'
import tailwindModule from '../src/module'

export default defineNuxtConfig({
// vite: false,
5 changes: 4 additions & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
@@ -121,7 +121,10 @@ export default defineNuxtModule({
_viewerDevMiddleware(req, res)
}
addServerMiddleware({ path, handler: viewerDevMiddleware })
nuxt.hook('listen', () => { logger.info(`Tailwind Viewer: ${chalk.underline.yellow(path)}`) })
nuxt.hook('listen', (_, listener) => {
const fullPath = `${withoutTrailingSlash(listener.url)}${path}`;
logger.info(`Tailwind Viewer: ${chalk.underline.yellow(fullPath)}`);
});
}
}
})