mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-14 16:20:04 +00:00
22 lines
545 B
TypeScript
22 lines
545 B
TypeScript
import reactSwc from '@vitejs/plugin-react-swc';
|
|
import type {UserConfigFn} from 'vite';
|
|
import {overrideVaadinConfig} from './vite.generated';
|
|
import path from "path";
|
|
|
|
const customConfig: UserConfigFn = (env) => ({
|
|
// Here you can add custom Vite parameters
|
|
// https://vitejs.dev/config/
|
|
plugins: [
|
|
reactSwc({
|
|
tsDecorators: true,
|
|
}),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./frontend"),
|
|
},
|
|
},
|
|
});
|
|
|
|
export default overrideVaadinConfig(customConfig);
|