-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.js
21 lines (20 loc) · 977 Bytes
/
vite.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
const { resolve } = require('path')
const { defineConfig } = require('vite')
module.exports = defineConfig({
build: {
rollupOptions: {
input: {
main: resolve(__dirname, 'index.html'),
game1: resolve(__dirname, 'samples/games/FlappyBird/index.html'),
game2: resolve(__dirname, 'samples/games/Snake/index.html'),
game3: resolve(__dirname, 'samples/games/SpaceWar/index.html'),
simulation1: resolve(__dirname, 'samples/simulations/Raining/index.html'),
simulation2: resolve(__dirname, 'samples/simulations/BeziereCurves/index.html'),
simulation3: resolve(__dirname, 'samples/simulations/SolorSystem/index.html'),
dsaSimulation1: resolve(__dirname, 'samples/dsa-simulation/knapsack-DP/index.html'),
dsaSimulation2: resolve(__dirname, 'samples/dsa-simulation/array-rotation/index.html'),
dsaSimulation3: resolve(__dirname, 'samples/dsa-simulation/playfair/index.html')
}
}
}
})