27 lines
651 B
TypeScript
27 lines
651 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import { resolve } from 'path'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve(__dirname, './src'),
|
|
'@fn_library': resolve(__dirname, '../../../frontend/functions/ui'),
|
|
},
|
|
dedupe: ['react', 'react-dom', '@mantine/core', '@mantine/hooks', '@mantine/notifications', '@mantine/charts'],
|
|
},
|
|
css: {
|
|
postcss: resolve(__dirname, './postcss.config.cjs'),
|
|
},
|
|
server: {
|
|
port: 5188,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:8787',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
})
|