mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-26 09:46:15 -04:00
feat: it-tools v3 base
This commit is contained in:
parent
1c35ac3704
commit
f8b5cbfd87
530 changed files with 7529 additions and 33524 deletions
33
packages/app/vite.config.ts
Normal file
33
packages/app/vite.config.ts
Normal file
|
@ -0,0 +1,33 @@
|
|||
import path from 'node:path';
|
||||
import unoCssPlugin from 'unocss/vite';
|
||||
import { defineConfig } from 'vite';
|
||||
import solidPlugin from 'vite-plugin-solid';
|
||||
import { configDefaults } from 'vitest/config';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
unoCssPlugin(),
|
||||
solidPlugin(),
|
||||
],
|
||||
server: {
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:8787',
|
||||
},
|
||||
},
|
||||
},
|
||||
build: {
|
||||
target: 'esnext',
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
},
|
||||
},
|
||||
test: {
|
||||
exclude: [
|
||||
...configDefaults.exclude,
|
||||
'**/*.e2e.test.ts',
|
||||
],
|
||||
},
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue