Skip to content

Commit 7b537c2

Browse files
committed
main 🧊 return tailwind for docs
1 parent efa1369 commit 7b537c2

File tree

5 files changed

+1608
-4551
lines changed

5 files changed

+1608
-4551
lines changed

‎packages/core/src/hooks/useScrollIntoView/useScrollIntoView.ts

-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ export const useScrollIntoView = ((...params: any[]) => {
8282
} = options ?? {};
8383

8484
useEffect(() => {
85-
console.log('useEffect', target, internalRef.state, enabled);
8685
if (!enabled) return;
8786
if (!target && !internalRef.state) return;
8887

‎packages/docs/app/.vitepress/config.mts

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { DefaultTheme } from 'vitepress';
2-
2+
import tailwindcss from '@tailwindcss/vite'
33
import { fileURLToPath } from 'node:url';
44
import { defineConfig } from 'vitepress';
55

@@ -32,6 +32,9 @@ export default async () => {
3232
title: 'reactuse',
3333
description: '🚀 the largest and most useful hook library',
3434
vite: {
35+
plugins: [
36+
tailwindcss(),
37+
],
3538
resolve: {
3639
alias: {
3740
'@siberiacancode/docs': fileURLToPath(new URL('../../src', import.meta.url)),

‎packages/docs/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,9 @@
3434
"@siberiacancode/reactuse": "workspace:*"
3535
},
3636
"devDependencies": {
37-
"@tailwindcss/postcss": "^4.0.7",
37+
"@tailwindcss/vite": "^4.0.7",
3838
"clsx": "^2.1.1",
3939
"comment-parser": "^1.4.1",
40-
"postcss": "^8.5.3",
4140
"react": "^18.3.1",
4241
"react-dom": "^18.3.1",
4342
"tailwind-merge": "^3.0.1",

0 commit comments

Comments
 (0)