-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
24 lines (23 loc) · 886 Bytes
/
vite.config.js
File metadata and controls
24 lines (23 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { defineConfig } from 'vite';
import { resolve } from 'path';
export default defineConfig({
build: {
rollupOptions: {
input: {
index: resolve(__dirname, 'index.html'),
background: resolve(__dirname, 'src/background/background.js'),
content: resolve(__dirname, 'src/content/jira/main.js'),
'zoom-content': resolve(__dirname, 'src/content/zoom/main.js'),
exporter: resolve(__dirname, 'src/pages/exporter/index.html'),
analytics: resolve(__dirname, 'src/pages/analytics/index.html'),
},
output: {
entryFileNames: '[name].js',
chunkFileNames: 'assets/[name].js',
assetFileNames: 'assets/[name].[ext]',
},
},
outDir: 'dist',
emptyOutDir: true,
},
});