-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvite.config.js
More file actions
33 lines (32 loc) · 834 Bytes
/
Copy pathvite.config.js
File metadata and controls
33 lines (32 loc) · 834 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
28
29
30
31
32
33
import {resolve} from 'path'
import {defineConfig} from 'vite';
export default defineConfig({
build: {
inlineDynamicImports: true,
manifest: false,
rollupOptions: {
preserveEntrySignatures: 'strict',
input: {
'Pagination': resolve(__dirname, 'Resources/Private/JavaScript/Pagination.ts'),
'Backend/TagsElement': resolve(__dirname, 'Resources/Private/JavaScript/Backend/TagsElement.ts')
},
output: {
entryFileNames: `[name].js`,
chunkFileNames: `[name].js`,
assetFileNames: `[name].[ext]`
}
},
target: 'modules',
minify: 'esbuild',
outDir: resolve(__dirname, 'Resources/Public/JavaScript')
},
esbuild: {
minifyIdentifiers: false
},
css: {
devSourcemap: true
},
plugins: [],
publicDir: false,
workDir: './'
});