Skip to content

Commit

Permalink
fix(tailwindcss): Tailwindcss HMR support for content files (#2315)
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Sep 18, 2023
1 parent cae34d7 commit 6eeb719
Show file tree
Hide file tree
Showing 5 changed files with 816 additions and 5 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
"@nuxt/test-utils": "3.7.3",
"@nuxthq/studio": "^0.14.1",
"@nuxtjs/eslint-config-typescript": "latest",
"@nuxtjs/tailwindcss": "^6.8.0",
"@types/ws": "^8.5.5",
"c8": "^8.0.1",
"csvtojson": "^2.0.10",
Expand Down
6 changes: 5 additions & 1 deletion playground/basic/content/0.index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@
title: Index
---


# 🎨 Playground

- [Playground](/playground)
- [Query Builder](/query-playground)
- [Custom 404 page](/404)
- [Not Found Content](/not-found-content)
- [Not Found Content](/not-found-content)


In order to test [Tailwind CSS]{.text-orange-500}, uncomment `@nuxtjs/tailwindcss` in `nuxt.config.ts`.
8 changes: 7 additions & 1 deletion playground/basic/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { resolve } from 'pathe'
import contentModule from '../../src/module'

export default defineNuxtConfig({
extends: ['../shared'],
Expand All @@ -18,5 +19,10 @@ export default defineNuxtConfig({
},
typescript: {
includeWorkspace: true
}
},
modules: [
// @ts-ignore
contentModule
// '@nuxtjs/tailwindcss'
]
})

0 comments on commit 6eeb719

Please sign in to comment.