This commit is contained in:
hanchaobo
2024-07-05 09:47:19 +08:00
parent e69cd3af6c
commit 3a6620b4e9
5 changed files with 1265 additions and 2 deletions
+2
View File
@@ -3,6 +3,7 @@ import path from "path";
import createVitePlugins from "./vite/plugins";
import tailwindcss from "tailwindcss";
import autoprefixer from "autoprefixer";
import { monacoAlias } from "@qomo-platform/vite-plugin"
const { networkInterfaces } = require("os");
/** 获取本地IP地址 */
@@ -35,6 +36,7 @@ export default defineConfig(({ mode, command }) => {
"~": path.resolve(__dirname, "./"),
// 设置别名
"@": path.resolve(__dirname, "./src"),
...monacoAlias
},
// https://cn.vitejs.dev/config/#resolve-extensions
extensions: [".mjs", ".js", ".ts", ".jsx", ".tsx", ".json", ".vue"],