Skip to content

Commit f484801

Browse files
committed
feat(tailwind): fix tailwindcss classes in playground app
1 parent b81ff29 commit f484801

File tree

5 files changed

+26
-4
lines changed

5 files changed

+26
-4
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"@bosh-code/tsdown-plugin-inject-css": "^1.0.2",
4949
"@bosh-code/tsdown-plugin-tailwindcss": "^1.0.1",
5050
"@eslint/js": "^9.37.0",
51+
"@tailwindcss/vite": "^4.1.14",
5152
"@testing-library/jest-dom": "^6.6.3",
5253
"@testing-library/react": "^16.3.0",
5354
"@types/node": "^22.15.17",

playground/src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { MyButton } from '../../dist'
2-
// import { MyButton } from '../../src'
1+
// import { MyButton } from '../../dist'
2+
import { MyButton } from '../../src'
33

44
export function App() {
55
return (

playground/vite.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import react from '@vitejs/plugin-react'
22
import { defineConfig } from 'vite'
3+
import tailwindcss from '@tailwindcss/vite'
34

45
export default defineConfig({
56
root: './playground',
6-
plugins: [react()],
7+
plugins: [
8+
react(),
9+
tailwindcss()
10+
],
711
})

pnpm-lock.yaml

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
@import "tailwindcss";
1+
@import "tailwindcss" source(none);
2+
3+
@source "./**/*.tsx";

0 commit comments

Comments
 (0)