提交饱和编辑的相关设计,及检验代码
This commit is contained in:
38
interactive/frontend/vite.config.ts
Normal file
38
interactive/frontend/vite.config.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
import vue from "@vitejs/plugin-vue";
|
||||
import AutoImport from "unplugin-auto-import/vite";
|
||||
import { NaiveUiResolver } from "unplugin-vue-components/resolvers";
|
||||
import Components from "unplugin-vue-components/vite";
|
||||
// vite.config.ts
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
server: {
|
||||
watch: {
|
||||
// 使用轮询模式,避免文件描述符问题
|
||||
usePolling: true,
|
||||
interval: 1000,
|
||||
// 忽略不需要监视的目录
|
||||
ignored: ["**/node_modules/**", "**/.git/**", "**/.next/**"],
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
vue(),
|
||||
AutoImport({
|
||||
imports: [
|
||||
"vue",
|
||||
{
|
||||
"naive-ui": [
|
||||
"useDialog",
|
||||
"useMessage",
|
||||
"useNotification",
|
||||
"useLoadingBar",
|
||||
],
|
||||
},
|
||||
],
|
||||
}),
|
||||
Components({
|
||||
resolvers: [NaiveUiResolver()],
|
||||
}),
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user