mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-28 23:19:44 -08:00
22 lines
521 B
JavaScript
22 lines
521 B
JavaScript
|
import { defineConfig } from 'vite';
|
||
|
import vue from '@vitejs/plugin-vue';
|
||
|
import { fileURLToPath } from 'url';
|
||
|
import { dirname, resolve } from 'path';
|
||
|
|
||
|
const __filename = fileURLToPath(import.meta.url);
|
||
|
const __dirname = dirname(__filename);
|
||
|
|
||
|
export default defineConfig({
|
||
|
plugins: [vue()],
|
||
|
test: {
|
||
|
globals: true,
|
||
|
environment: 'jsdom',
|
||
|
setupFiles: ['./test/component/setup.js'],
|
||
|
},
|
||
|
resolve: {
|
||
|
alias: {
|
||
|
'@': resolve(__dirname, '../src'),
|
||
|
},
|
||
|
},
|
||
|
});
|