-
Notifications
You must be signed in to change notification settings - Fork 334
Expand file tree
/
Copy pathvite.config.ts
More file actions
37 lines (36 loc) · 1.1 KB
/
vite.config.ts
File metadata and controls
37 lines (36 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import path from 'path';
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { viteSingleFile } from 'vite-plugin-singlefile';
import tailwindcss from '@tailwindcss/vite';
import pkg from '../../package.json';
export default defineConfig({
server: {
port: 3002,
host: '0.0.0.0',
},
define: {
__APP_VERSION__: JSON.stringify(pkg.version),
},
plugins: [react(), tailwindcss(), viteSingleFile()],
resolve: {
alias: {
'@': path.resolve(__dirname, '.'),
'@plannotator/ui': path.resolve(__dirname, '../../packages/ui'),
'@plannotator/shared': path.resolve(__dirname, '../../packages/shared'),
'@plannotator/checklist-editor/styles': path.resolve(__dirname, '../../packages/checklist-editor/index.css'),
'@plannotator/checklist-editor': path.resolve(__dirname, '../../packages/checklist-editor/App.tsx'),
}
},
build: {
target: 'esnext',
assetsInlineLimit: 100000000,
chunkSizeWarningLimit: 100000000,
cssCodeSplit: false,
rollupOptions: {
output: {
inlineDynamicImports: true,
},
},
},
});