leonsimon23 commited on
Commit
f88d195
1 Parent(s): 5a505cb

Update vite.config.js

Browse files
Files changed (1) hide show
  1. vite.config.js +10 -0
vite.config.js CHANGED
@@ -14,5 +14,15 @@ export default defineConfig({
14
  // return path.replace(/^\/api/, "")}
15
  }
16
  }
 
 
 
 
 
 
 
 
 
 
17
  }
18
  })
 
14
  // return path.replace(/^\/api/, "")}
15
  }
16
  }
17
+ },
18
+ build: {
19
+ outDir: 'dist', // 设置输出目录为 dist
20
+ rollupOptions: {
21
+ output: {
22
+ entryFileNames: 'js/[name]-[hash].js',
23
+ chunkFileNames: 'js/[name]-[hash].js',
24
+ assetFileNames: 'assets/[name]-[hash].[ext]'
25
+ }
26
+ }
27
  }
28
  })