karideo/front/vite.config.mts

37 lines
623 B
TypeScript
Raw Permalink Normal View History

2025-02-18 22:00:21 +01:00
import react from '@vitejs/plugin-react';
import path from 'node:path';
import { defineConfig } from 'vite';
// https://vitejs.dev/config/
export default defineConfig({
2025-02-24 09:34:00 +01:00
plugins: [
// other Vite plugins
react({
babel: {
plugins: [
// other Babel plugins
[
"@locator/babel-jsx/dist",
{
env: "development",
},
],
],
},
}),
],
2025-02-18 22:00:21 +01:00
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
server: {
port: 4202,
},
preview: {
port: 4202,
},
base: '/karideo',
});