|
|
|
@ -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', // 入口文件命名
|
|
|
|
|