2023-06-28 09:36:38 +00:00
|
|
|
import {defineConfig, splitVendorChunkPlugin} from 'vite';
|
2023-04-13 06:56:25 +00:00
|
|
|
import solidPlugin from 'vite-plugin-solid';
|
|
|
|
import suidPlugin from "@suid/vite-plugin";
|
2023-06-28 09:36:38 +00:00
|
|
|
import visualizer from "rollup-plugin-visualizer";
|
2023-04-13 06:56:25 +00:00
|
|
|
|
|
|
|
export default defineConfig({
|
2023-06-28 09:36:38 +00:00
|
|
|
plugins: [solidPlugin(),suidPlugin(),splitVendorChunkPlugin()],
|
2023-04-13 06:56:25 +00:00
|
|
|
server: {
|
|
|
|
port: 3000,
|
|
|
|
proxy: {
|
2023-05-01 00:12:15 +00:00
|
|
|
'/api': 'http://localhost:8080',
|
2023-04-13 06:56:25 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
root: './src/main/web',
|
|
|
|
build: {
|
|
|
|
target: 'esnext',
|
|
|
|
outDir: '../resources/static',
|
2023-06-28 09:36:38 +00:00
|
|
|
rollupOptions:{
|
|
|
|
plugins: [
|
|
|
|
visualizer()
|
|
|
|
]
|
|
|
|
}
|
2023-04-13 06:56:25 +00:00
|
|
|
},
|
|
|
|
});
|