2024-09-24 16:14:49 -04:00
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
import viteTsconfigPaths from 'vite-tsconfig-paths'
|
|
|
|
|
2024-12-03 10:31:50 -05:00
|
|
|
|
2024-09-24 16:14:49 -04:00
|
|
|
export default defineConfig({
|
|
|
|
// depending on your application, base can also be "/"
|
|
|
|
base: '/',
|
|
|
|
plugins: [react(), viteTsconfigPaths()],
|
|
|
|
server: {
|
|
|
|
// this ensures that the browser opens upon server start
|
|
|
|
open: true,
|
|
|
|
// this sets a default port to 3000
|
|
|
|
port: 3000,
|
|
|
|
},
|
2024-12-03 10:31:50 -05:00
|
|
|
test: {
|
|
|
|
globals: true,
|
|
|
|
environment: 'jsdom',
|
|
|
|
// other options...
|
|
|
|
}
|
2024-09-24 16:14:49 -04:00
|
|
|
})
|