Files
ai-write/package.json
empty d669487717 refactor: 将 Tailwind CSS 从 CDN 迁移到本地安装
**变更内容**:
- 移除 index.html 中的 CDN 链接 (https://cdn.tailwindcss.com)
- 本地安装 Tailwind CSS、PostCSS 和 Autoprefixer
- 创建 tailwind.config.js 配置文件
- 创建 postcss.config.js 配置文件
- 创建 src/styles/tailwind.css 入口文件
- 在 main.js 中导入 Tailwind CSS

**优势**:
-  完全离线运行,不依赖外部网络资源
-  更快的加载速度(无需从 CDN 下载)
-  更稳定的构建过程
-  可自定义 Tailwind 配置

**依赖变化**:
- 新增 devDependencies: tailwindcss, postcss, autoprefixer

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-12 01:41:20 +08:00

34 lines
770 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": {
"@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"
}
}