forked from appium/appium-inspector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.mjs
36 lines (35 loc) · 822 Bytes
/
vite.config.mjs
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
import react from '@vitejs/plugin-react';
import {join} from 'path';
import {defineConfig} from 'vite';
// https://vitejs.dev/config/
export default defineConfig({
build: {
outDir: join(__dirname, 'dist-browser'),
emptyOutDir: true,
minify: false, // needed to avoid issues with web2driver
reportCompressedSize: false,
target: 'es2022',
},
define: {
'process.env': process.env,
},
css: {
preprocessorOptions: {
less: {
javascriptEnabled: true,
additionalData: '@root-entry-name: default;',
},
},
},
plugins: [react()],
resolve: {
alias: {
'#local-polyfills': join(__dirname, 'app', 'web', 'polyfills'),
},
},
root: join(__dirname, 'app', 'common'),
test: {
restoreMocks: true,
root: join(__dirname, 'test'),
},
});