add cf-page-vless

This commit is contained in:
zizifn
2023-05-18 20:15:58 +08:00
committed by zizifn
parent c72747e89e
commit 0b632c025f
29 changed files with 294 additions and 105 deletions

View File

@@ -0,0 +1,26 @@
/// <reference types="vitest" />
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import viteTsConfigPaths from 'vite-tsconfig-paths';
export default defineConfig({
server: {
port: 4200,
host: 'localhost',
},
plugins: [
react(),
viteTsConfigPaths({
root: '../../',
}),
],
test: {
globals: true,
cache: {
dir: '../../node_modules/.vitest',
},
environment: 'jsdom',
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
},
});