2022-07-30 16:24:28 +02:00
|
|
|
import {defineConfig} from "vite";
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
plugins: [
|
|
|
|
// splitVendorChunkPlugin(),
|
2022-07-30 16:28:29 +02:00
|
|
|
// visualizer(),
|
2022-07-30 16:24:28 +02:00
|
|
|
],
|
|
|
|
build: {
|
2022-07-30 16:29:15 +02:00
|
|
|
outDir: "static/build",
|
2022-07-30 16:24:28 +02:00
|
|
|
assetsDir: ".",
|
|
|
|
// generate manifest.json in outDir
|
|
|
|
manifest: true,
|
|
|
|
rollupOptions: {
|
|
|
|
// overwrite default .html entry
|
|
|
|
input: {
|
2022-07-31 00:46:21 +02:00
|
|
|
"main": 'static/main.ts',
|
2022-07-30 16:39:29 +02:00
|
|
|
// "tenantbase": 'static/tenantbase.js',
|
|
|
|
// "editor": 'static/editor.js'
|
2022-07-30 16:24:28 +02:00
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|