Files
chatgpt-api-web/vite.config.ts
heimoshuiyu f0f040c42c
All checks were successful
Build static content / build (push) Successful in 10m51s
use @ import alias
2024-10-14 18:09:07 +08:00

15 lines
280 B
TypeScript

import { defineConfig } from 'vite'
import preact from '@preact/preset-vite'
import path from 'path'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [preact()],
base: './',
resolve: {
alias: {
'@': path.resolve(__dirname, 'src')
}
}
})