Hideout/vite.config.ts

25 lines
628 B
TypeScript
Raw Normal View History

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";
import visualizer from "rollup-plugin-visualizer";
2023-04-13 06:56:25 +00:00
export default defineConfig({
plugins: [solidPlugin(),suidPlugin(),splitVendorChunkPlugin()],
2023-04-13 06:56:25 +00:00
server: {
port: 3000,
proxy: {
'/api': 'http://localhost:8080',
2023-04-13 06:56:25 +00:00
}
},
root: './src/main/web',
build: {
target: 'esnext',
outDir: '../resources/static',
rollupOptions:{
plugins: [
visualizer()
]
}
2023-04-13 06:56:25 +00:00
},
});