-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvite.config.ts
More file actions
31 lines (30 loc) · 1 KB
/
vite.config.ts
File metadata and controls
31 lines (30 loc) · 1 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
30
31
import path from 'path';
import tailwindcss from '@tailwindcss/vite';
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [react(), tailwindcss()],
resolve: {
alias: {
'@': path.resolve(__dirname, './'),
joymap: path.resolve(__dirname, './src/index.ts'),
},
},
server: {
port: 9001,
},
build: {
outDir: 'devBundle',
rollupOptions: {
input: {
main: path.resolve(__dirname, 'index.html'),
readme: path.resolve(__dirname, 'examples/pages/Readme/index.html'),
fighting: path.resolve(__dirname, 'examples/pages/Fighting/index.html'),
log: path.resolve(__dirname, 'examples/pages/Log/index.html'),
react: path.resolve(__dirname, 'examples/pages/React/index.html'),
rumble: path.resolve(__dirname, 'examples/pages/Rumble/index.html'),
editor: path.resolve(__dirname, 'examples/pages/Editor/index.html'),
},
},
},
});