mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 13:02:50 +00:00
20 lines
598 B
TypeScript
20 lines
598 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
|
|
|
|
export default defineConfig({
|
|
root: __dirname,
|
|
cacheDir: '../../node_modules/.vite/apps/portal',
|
|
server: { port: 4200, host: 'localhost' },
|
|
preview: { port: 4200, host: 'localhost' },
|
|
plugins: [react(), nxViteTsPaths()],
|
|
resolve: {
|
|
dedupe: ['react', 'react-dom', 'react-router-dom', '@tanstack/react-query'],
|
|
},
|
|
build: {
|
|
outDir: '../../dist/apps/portal',
|
|
emptyOutDir: true,
|
|
reportCompressedSize: true,
|
|
},
|
|
});
|