1 Star 0 Fork 8

马成功/EcoPaste

forked from ayangweb/EcoPaste 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vite.config.ts 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
import react from "@vitejs/plugin-react";
import UnoCSS from "unocss/vite";
import AutoImport from "unplugin-auto-import/vite";
import { defineConfig } from "vite";
// https://vitejs.dev/config/
export default defineConfig(async () => ({
plugins: [
react(),
UnoCSS(),
AutoImport({
imports: ["react", "ahooks", "react-router-dom", "react-i18next"],
dts: "src/types/auto-imports.d.ts",
dirs: [
"src/router",
"src/utils",
"src/stores",
"src/database",
"src/hooks",
"src/constants",
"src/plugins",
"src/locales",
],
}),
],
resolve: {
alias: {
"@": "/src",
},
},
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
//
// 1. prevent vite from obscuring rust errors
clearScreen: false,
// 2. tauri expects a fixed port, fail if that port is not available
server: {
port: 1420,
strictPort: true,
watch: {
// 3. tell vite to ignore watching `src-tauri`
ignored: ["**/src-tauri/**"],
},
},
build: {
chunkSizeWarningLimit: 2000,
},
}));
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/dratium/EcoPaste.git
git@gitee.com:dratium/EcoPaste.git
dratium
EcoPaste
EcoPaste
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385