This repository has been archived on 2025-07-20. You can view files and clone it, but cannot push or open issues or pull requests.
fediswald/apps/frontend/vite.config.ts

29 lines
628 B
TypeScript

/// <reference types='vitest' />
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig(() => ({
root: __dirname,
cacheDir: '../../node_modules/.vite/apps/frontend',
server: {
port: 4200,
host: 'localhost',
},
preview: {
port: 4300,
host: 'localhost',
},
plugins: [react()],
// Uncomment this if you are using workers.
// worker: {
// plugins: [ nxViteTsPaths() ],
// },
build: {
outDir: './dist',
emptyOutDir: true,
reportCompressedSize: true,
commonjsOptions: {
transformMixedEsModules: true,
},
},
}));