Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tailwindcss): Tailwindcss HMR support for content files #2315

Merged
merged 2 commits into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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'
]
})