fix build config

This commit is contained in:
AnisHADJARAB 2024-10-30 14:12:42 +00:00
parent 2ad34191d2
commit 8767b5c5c4

View File

@ -14,14 +14,14 @@ export default defineConfig({
wasm(), wasm(),
createHtmlPlugin({ createHtmlPlugin({
minify: true, minify: true,
template: 'src/index.html', template: 'index.html',
}), }),
], ],
build: { build: {
outDir: 'dist', outDir: 'dist',
target: 'esnext', target: 'esnext',
rollupOptions: { rollupOptions: {
input: './src/index.ts', input: './src/router.ts',
output: { output: {
entryFileNames: 'index.js', entryFileNames: 'index.js',
}, },