-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.content.config.ts
More file actions
26 lines (25 loc) 路 582 Bytes
/
Copy pathvite.content.config.ts
File metadata and controls
26 lines (25 loc) 路 582 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
import { defineConfig } from 'vite';
import { resolve } from 'path';
export default defineConfig({
build: {
outDir: 'dist',
emptyOutDir: false, // Don't clear dist, we want to keep the other build's files
rollupOptions: {
input: {
'content/index': resolve(__dirname, 'src/content/index.ts'),
},
output: {
entryFileNames: '[name].js',
format: 'iife',
name: 'PageAgentContent'
},
},
target: 'esnext',
minify: false,
},
resolve: {
alias: {
'@': resolve(__dirname, 'src'),
},
},
});