-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
27 lines (25 loc) · 520 Bytes
/
vite.config.js
File metadata and controls
27 lines (25 loc) · 520 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
25
26
27
import { fileURLToPath, URL } from 'url';
import { defineConfig } from 'vite';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
build: {
lib: {
entry: 'src/main.js',
formats: ['iife'],
name: 'watch-along-stopwatch.js',
fileName: 'watch-along-stopwatch',
},
rollupOptions: {
output: {
banner: '',
footer: '',
},
},
},
});