**问题描述**: - Tailwind CSS v4 将 PostCSS 插件移至独立包 @tailwindcss/postcss - 直接使用 tailwindcss 作为 PostCSS 插件会导致错误 - 错误信息: "The PostCSS plugin has moved to a separate package" **解决方案**: - 安装 @tailwindcss/postcss 包 - 更新 postcss.config.js 使用新的插件路径 **变更内容**: - 新增 devDependencies: @tailwindcss/postcss - 修改 postcss.config.js: tailwindcss -> @tailwindcss/postcss Co-Authored-By: Claude <noreply@anthropic.com>
35 lines
809 B
JSON
35 lines
809 B
JSON
{
|
|
"name": "ai-writer-workshop",
|
|
"version": "1.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"preview": "vite preview"
|
|
},
|
|
"dependencies": {
|
|
"@tiptap/extension-placeholder": "^3.15.3",
|
|
"@tiptap/pm": "^3.15.3",
|
|
"@tiptap/starter-kit": "^3.15.3",
|
|
"@tiptap/vue-3": "^3.15.3",
|
|
"axios": "^1.6.0",
|
|
"diff-match-patch": "^1.0.5",
|
|
"docx": "^9.5.1",
|
|
"file-saver": "^2.0.5",
|
|
"marked": "^9.1.0",
|
|
"pinia": "^2.1.0",
|
|
"sql.js": "^1.13.0",
|
|
"vue": "^3.4.0"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4.1.18",
|
|
"@vitejs/plugin-vue": "^4.5.0",
|
|
"autoprefixer": "^10.4.23",
|
|
"dotenv": "^16.3.1",
|
|
"playwright": "^1.57.0",
|
|
"postcss": "^8.5.6",
|
|
"tailwindcss": "^4.1.18",
|
|
"vite": "^5.0.0"
|
|
}
|
|
}
|