mirror of
https://github.com/Moe-Sakura/frontend.git
synced 2026-05-16 21:26:46 +08:00
* 移除所有 Material Web Components 和 GSAP 相关依赖,简化项目结构。 * 更新 `index.html`,添加 favicon 和优化 PWA 相关设置。 * 重构多个组件(如 `CommentsModal.vue`, `SearchHeader.vue`, `SearchResults.vue`)以使用 Tailwind CSS,提升样式一致性和用户体验。 * 移除不必要的调试日志,优化代码清理。 * 更新 `package.json` 和 `pnpm-lock.yaml`,引入新的依赖以支持 Tailwind CSS 和 Font Awesome。 * 简化 Service Worker,优化缓存策略。
21 lines
422 B
TypeScript
21 lines
422 B
TypeScript
import { defineConfig } from "vite";
|
|
import vue from "@vitejs/plugin-vue";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import { fileURLToPath, URL } from 'node:url';
|
|
|
|
export default defineConfig({
|
|
server: {
|
|
host: "localhost",
|
|
port: 5500,
|
|
},
|
|
plugins: [
|
|
vue(),
|
|
tailwindcss(),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
}
|
|
}
|
|
});
|