aboutsummaryrefslogtreecommitdiff
path: root/vite.config.ts
blob: 729378a52b756533e0c58dab721ef9fc400bb249 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/// <reference types="vitest" />
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
	plugins: [vue()],
	base: '/',
	server: {
		proxy: {'/data': 'http://localhost:8000', '/hist_data': 'http://localhost:8000'},
		watch: {
			ignored: ['**/backend', '**/public'],
		},
	},
	build: {
		sourcemap: true,
	},
	test: {
		globals: true,
		environment: 'happy-dom',
	},
})