Skip to content

Commit

Permalink
try multi page vite setup
Browse files Browse the repository at this point in the history
  • Loading branch information
isometriks committed Sep 6, 2024
1 parent 3a70c54 commit decf538
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
export default {
base: '/ts-ml/'
}
// vite.config.js
import { resolve } from 'path'
import { defineConfig } from 'vite'

export default defineConfig({
base: '/ts-ml',
build: {
rollupOptions: {
input: {
main: resolve(__dirname, 'index.html'),
mnist: resolve(__dirname, 'mnist.html'),
},
},
},
})

0 comments on commit decf538

Please sign in to comment.