feat(init): initialize new project
This commit is contained in:
23
vite.config.ts
Normal file
23
vite.config.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import path from 'path';
|
||||
import solid from 'vite-plugin-solid';
|
||||
import tailwind from '@tailwindcss/vite';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [solid(), tailwind()],
|
||||
server: {
|
||||
host: true,
|
||||
allowedHosts: ['local.kmux.cn'],
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://local.kmux.cn:8080',
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'~': path.resolve(__dirname, 'src'),
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user