-
Notifications
You must be signed in to change notification settings - Fork 14
/
vite.config.js
29 lines (28 loc) · 890 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
22
23
24
25
26
27
28
29
import { defineConfig } from 'vite';
import { resolve } from 'path';
import rollupOptions from './rollup.config';
// https://vitejs.dev/config/
export default defineConfig({
base: '/pixi-shadows/dist/',
server: {
port: 4000,
strictPort: true,
},
resolve: {
alias: { 'pixi-shadows': '../../src' },
},
build: {
outDir: 'dist',
emptyOutDir: false,
rollupOptions: {
...rollupOptions,
input: {
index: resolve(__dirname, 'index.html'),
advanced: resolve(__dirname, 'examples/advanced/index.html'),
basic: resolve(__dirname, 'examples/basic/index.html'),
'pixi-lights': resolve(__dirname, 'examples/pixi-lights/index.html'),
system: resolve(__dirname, 'examples/system/index.html'),
},
},
},
});