2025-11-08 23:28:11 +00:00
|
|
|
/// <reference types='vitest' />
|
|
|
|
|
import { defineConfig } from 'vite';
|
|
|
|
|
import vue from '@vitejs/plugin-vue';
|
2025-11-10 15:07:53 +00:00
|
|
|
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
|
|
|
|
|
import { nxCopyAssetsPlugin } from '@nx/vite/plugins/nx-copy-assets.plugin';
|
2025-11-08 23:28:11 +00:00
|
|
|
|
|
|
|
|
export default defineConfig(() => ({
|
|
|
|
|
root: __dirname,
|
2025-11-10 15:07:53 +00:00
|
|
|
cacheDir: '../../../node_modules/.vite/apps/web',
|
2025-11-08 23:28:11 +00:00
|
|
|
server: {
|
|
|
|
|
port: 4200,
|
|
|
|
|
host: 'localhost',
|
|
|
|
|
},
|
|
|
|
|
preview: {
|
|
|
|
|
port: 4300,
|
|
|
|
|
host: 'localhost',
|
|
|
|
|
},
|
2025-11-10 15:07:53 +00:00
|
|
|
plugins: [vue(), nxViteTsPaths(), nxCopyAssetsPlugin(['*.md'])],
|
2025-11-08 23:28:11 +00:00
|
|
|
// Uncomment this if you are using workers.
|
|
|
|
|
// worker: {
|
2025-11-10 15:07:53 +00:00
|
|
|
// plugins: [ nxViteTsPaths() ],
|
2025-11-08 23:28:11 +00:00
|
|
|
// },
|
|
|
|
|
build: {
|
2025-11-10 15:07:53 +00:00
|
|
|
outDir: '../../dist/apps/web',
|
2025-11-08 23:28:11 +00:00
|
|
|
emptyOutDir: true,
|
|
|
|
|
reportCompressedSize: true,
|
|
|
|
|
commonjsOptions: {
|
|
|
|
|
transformMixedEsModules: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}));
|