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

Commits on Oct 24, 2022

  1. docs: update badges colors

    atinux authored Oct 24, 2022
    Copy the full SHA
    9d7b09d View commit details

Commits on Oct 27, 2022

  1. Copy the full SHA
    3f835bd View commit details

Commits on Oct 28, 2022

  1. Copy the full SHA
    5b373c6 View commit details
  2. chore(release): 6.1.2

    atinux committed Oct 28, 2022
    Copy the full SHA
    fb34843 View commit details
Showing with 13 additions and 14 deletions.
  1. +7 −0 CHANGELOG.md
  2. +3 −11 README.md
  3. +1 −1 package.json
  4. +0 −1 playground/nuxt.config.ts
  5. +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.2](https://github.com/nuxt-community/tailwindcss-module/compare/v6.1.1...v6.1.2) (2022-10-28)


### Bug Fixes

* normalise undefined `nuxt.options.watch` ([#553](https://github.com/nuxt-community/tailwindcss-module/issues/553)) ([5b373c6](https://github.com/nuxt-community/tailwindcss-module/commit/5b373c6c1091808360db4a657210e21adf205d73))

### [6.1.1](https://github.com/nuxt-community/tailwindcss-module/compare/v6.1.0...v6.1.1) (2022-10-24)


14 changes: 3 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -4,8 +4,6 @@

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![Github Actions CI][github-actions-ci-src]][github-actions-ci-href]
[![Codecov][codecov-src]][codecov-href]
[![License][license-src]][license-href]

> [Tailwind CSS](https://tailwindcss.com) module for [Nuxt](https://nuxtjs.org) with [modern css](https://tailwindcss.com/docs/using-with-preprocessors#future-css-features) ⚡️
@@ -71,17 +69,11 @@ Or locally:
Copyright (c) Nuxt Community

<!-- Badges -->
[npm-version-src]: https://img.shields.io/npm/v/@nuxtjs/tailwindcss/latest.svg
[npm-version-src]: https://img.shields.io/npm/v/@nuxtjs/tailwindcss/latest.svg?style=flat&colorA=002438&colorB=28CF8D
[npm-version-href]: https://npmjs.com/package/@nuxtjs/tailwindcss

[npm-downloads-src]: https://img.shields.io/npm/dm/@nuxtjs/tailwindcss.svg
[npm-downloads-src]: https://img.shields.io/npm/dm/@nuxtjs/tailwindcss.svg?style=flat&colorA=002438&colorB=28CF8D
[npm-downloads-href]: https://npmjs.com/package/@nuxtjs/tailwindcss

[github-actions-ci-src]: https://github.com/nuxt-community/tailwindcss-module/workflows/ci/badge.svg
[github-actions-ci-href]: https://github.com/nuxt-community/tailwindcss-module/actions?query=workflow%3Aci

[codecov-src]: https://img.shields.io/codecov/c/github/nuxt-community/tailwindcss-module.svg
[codecov-href]: https://codecov.io/gh/nuxt-community/tailwindcss-module

[license-src]: https://img.shields.io/npm/l/@nuxtjs/tailwindcss.svg
[license-src]: https://img.shields.io/npm/l/@nuxtjs/tailwindcss.svg?style=flat&colorA=002438&colorB=28CF8D
[license-href]: https://npmjs.com/package/@nuxtjs/tailwindcss
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.1",
"version": "6.1.2",
"description": "TailwindCSS module for Nuxt",
"repository": "nuxt-community/tailwindcss-module",
"license": "MIT",
1 change: 0 additions & 1 deletion playground/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
import tailwindModule from '../src/module'

export default defineNuxtConfig({
3 changes: 2 additions & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
@@ -109,6 +109,7 @@ export default defineNuxtModule<ModuleOptions>({

// Watch the Tailwind config file to restart the server
if (nuxt.options.dev) {
nuxt.options.watch = nuxt.options.watch || []
configPaths.forEach(path => nuxt.options.watch.push(path))
}

@@ -143,7 +144,7 @@ export default defineNuxtModule<ModuleOptions>({
getContents: () => `module.exports = ${JSON.stringify(resolvedConfig, null, 2)}`,
write: true
})

// Expose resolved tailwind config as an alias
// https://tailwindcss.com/docs/configuration/#referencing-in-javascript
if (moduleOptions.exposeConfig) {