-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathvite.config.ts
43 lines (38 loc) · 948 Bytes
/
vite.config.ts
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
/// <reference types='vitest' />
import { sentryVitePlugin } from '@sentry/vite-plugin';
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
import { ViteEjsPlugin } from 'vite-plugin-ejs';
import EnvironmentPlugin from 'vite-plugin-environment';
import viteTsConfigPaths from 'vite-tsconfig-paths';
export default defineConfig({
cacheDir: '../../node_modules/.vite/editor',
server: {
port: 4200,
host: 'localhost',
},
preview: {
port: 4300,
host: 'localhost',
},
build: {
sourcemap: true,
},
plugins: [
ViteEjsPlugin(),
react(),
viteTsConfigPaths({
root: '../../',
}),
EnvironmentPlugin('all'),
sentryVitePlugin({
org: 'liquid-editor',
project: 'liquid-editor-demo',
authToken: process.env.SENTRY_AUTH_TOKEN,
}),
],
// Uncomment this if you are using workers.
// worker: {
// plugins: [ nxViteTsPaths() ],
// },
});