You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
659 B
JavaScript
27 lines
659 B
JavaScript
import { defineConfig } from 'vite'
|
|
import { basename, extname, resolve } from 'path'
|
|
|
|
const stripExt = path => basename(path, extname(path))
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
rollupOptions: {
|
|
input: Object.fromEntries(
|
|
[
|
|
// Entry points
|
|
'index.html',
|
|
'login.html',
|
|
'user.html',
|
|
'game.html',
|
|
].map(path => [stripExt(path), resolve(__dirname, path)])
|
|
),
|
|
},
|
|
},
|
|
server: {
|
|
proxy: {
|
|
'/api': 'http://127.0.0.1:4000',
|
|
},
|
|
},
|
|
plugins: [],
|
|
})
|