16 lines
530 B
JavaScript
16 lines
530 B
JavaScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import path from 'path'
|
|
import { fileURLToPath } from 'url'
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
const repoRoot = path.resolve(__dirname, '..')
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
base: '/auth/',
|
|
build: { outDir: path.resolve(repoRoot, 'auth'), emptyOutDir: true },
|
|
resolve: { alias: { '@shared-css': path.resolve(repoRoot, 'css/styles.css') } },
|
|
server: { port: 5173, fs: { allow: [repoRoot] } },
|
|
})
|