guhongwei 1 year ago
parent
commit
b32987e0cd
1 changed files with 9 additions and 11 deletions
  1. 9 11
      vite.config.ts

+ 9 - 11
vite.config.ts

@@ -1,16 +1,14 @@
-import { fileURLToPath, URL } from 'node:url'
 import { defineConfig } from 'vite'
 import vue from '@vitejs/plugin-vue'
-export default defineConfig(() => {
-  return {
-    plugins: [vue()],
-    server: {
-      fs: { strict: false }
-    },
-    resolve: {
-      alias: {
-        '@': fileURLToPath(new URL('./src', import.meta.url))
-      }
+
+export default defineConfig({
+  plugins: [vue()],
+  server: {
+    fs: {
+      strict: false
     }
+  },
+  resolve: {
+    alias: {}
   }
 })