Browse Source

配置

master
liruiqiang 3 months ago
parent
commit
6aec41b450
  1. 2
      vite.config.js

2
vite.config.js

@ -29,7 +29,7 @@ export default defineConfig(({ mode, command }) => {
outDir: outDirMap[mode] || 'dist',
rollupOptions: {
input: {
main: './index.html',
main: fileURLToPath(new URL('./index.html', import.meta.url)),
},
output: {
entryFileNames: '[name].js', // 入口文件命名

Loading…
Cancel
Save