-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
29 lines (28 loc) · 1.11 KB
/
vite.config.js
File metadata and controls
29 lines (28 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
const { resolve } = require('path');
export default defineConfig({
plugins: [react()],
server: {
port: 3000
},
build: {
outDir: 'dist',
assetsDir: 'assets',
emptyOutDir: true,
rollupOptions: {
input: {
main: resolve(__dirname, 'index.html'),
game: resolve(__dirname, 'game.html'),
// --- Minigame iframe entries ---
boatGrow: resolve(__dirname, 'src/gamification/game-overlays/boatGrow/boatGrow.html'),
fishPunch: resolve(__dirname, 'src/gamification/game-overlays/fishPunch/fishPunch.html'),
fishBounce: resolve(__dirname, 'src/gamification/game-overlays/fishBounce/fishBounce.html'),
safehouse: resolve(__dirname, 'src/gamification/game-overlays/safehouse/safehouse.html'),
shopFisher: resolve(__dirname, 'src/gamification/game-overlays/shopFisher/shopFisher.html'),
tutorial: resolve(__dirname, 'src/gamification/game-overlays/tutorial.html'),
inventory: resolve(__dirname, 'src/gamification/game-overlays/inventory.html')
}
}
}
})