-
Notifications
You must be signed in to change notification settings - Fork 1
/
vite.config.ts
25 lines (24 loc) · 1.08 KB
/
vite.config.ts
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
import { defineConfig } from 'vite';
import path from 'path';
export default defineConfig(({ command }) => {
console.log(`Running: ${command}`);
return {
build: {
rollupOptions: {
input: {
main: path.resolve(__dirname, 'index.html'),
helloWorldWorkerTask: path.resolve(__dirname, 'packages/examples/helloWorldWorkerTask.html'),
helloWorldComChannelEndpoint: path.resolve(__dirname, 'packages/examples/helloWorldComChannelEndpoint.html'),
helloWorldWorkerTaskDirector: path.resolve(__dirname, 'packages/examples/helloWorldWorkerTaskDirector.html'),
transferables: path.resolve(__dirname, 'packages/examples/transferables.html'),
threejs: path.resolve(__dirname, 'packages/examples/threejs.html'),
potentiallyInfinite: path.resolve(__dirname, 'packages/examples/potentially_infinite.html')
}
}
},
server: {
port: 23001,
host: '0.0.0.0'
},
};
});