-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvite.config.ts
More file actions
47 lines (45 loc) · 946 Bytes
/
vite.config.ts
File metadata and controls
47 lines (45 loc) · 946 Bytes
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
38
39
40
41
42
43
44
45
46
47
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import svgr from 'vite-plugin-svgr'
const SENTRY_DSN = ""
// https://vitejs.dev/config/
export default defineConfig({
root: './app',
base: '',
server: {
port: 3000,
strictPort: true,
origin: 'http://localhost:3000',
hmr: {
host: 'localhost'
}
},
plugins: [
react({
jsxImportSource: '@emotion/react',
babel: {
plugins: [
'babel-plugin-macros',
'@emotion/babel-plugin'
]
}
}),
svgr()
],
define: {
PRODUCTION: JSON.stringify(process.env.NODE_ENV === 'production'),
SENTRY_DSN: JSON.stringify(SENTRY_DSN)
},
build: {
outDir: '../dist',
emptyOutDir: true,
manifest: true,
rollupOptions: {
input: './app/index.tsx',
output: {
entryFileNames: 'app.js',
assetFileNames: 'assets/[name].[ext]'
}
}
}
})