소스 검색

fix build error

anhuiqiang 1 주 전
부모
커밋
202b276dc6
4개의 변경된 파일14개의 추가작업 그리고 8개의 파일을 삭제
  1. 9 0
      .dockerignore
  2. 1 1
      web/package.json
  3. 0 6
      web/postcss.config.js
  4. 4 1
      web/vite.config.ts

+ 9 - 0
.dockerignore

@@ -0,0 +1,9 @@
+node_modules
+web/node_modules
+server/node_modules
+dist
+.git
+.env*
+.gemini
+.specify
+*.log

+ 1 - 1
web/package.json

@@ -36,7 +36,7 @@
     "@vitejs/plugin-react": "^5.0.0",
     "autoprefixer": "^10.4.27",
     "postcss": "^8.5.6",
-    "tailwindcss": "^4.0.0",
+    "tailwindcss": "^4.2.1",
     "typescript": "~5.8.2",
     "vite": "^6.2.0"
   }

+ 0 - 6
web/postcss.config.js

@@ -1,6 +0,0 @@
-export default {
-  plugins: {
-    '@tailwindcss/postcss': {},
-    'autoprefixer': {},
-  },
-}

+ 4 - 1
web/vite.config.ts

@@ -20,11 +20,14 @@ export default defineConfig(({ mode }) => {
         },
       },
     },
-    plugins: [tailwindcss(), react()],
+    plugins: [tailwindcss() as any, react()],
     define: {
       'process.env.API_KEY': JSON.stringify(env.GEMINI_API_KEY),
       'process.env.GEMINI_API_KEY': JSON.stringify(env.GEMINI_API_KEY)
     },
+    optimizeDeps: {
+      exclude: ['tailwindcss']
+    },
     resolve: {
       alias: {
         '@': path.resolve(__dirname, '.'),