mirror of
https://github.com/yudejp/yude.jp.git
synced 2025-01-23 04:57:21 +00:00
19 lines
379 B
TypeScript
19 lines
379 B
TypeScript
import { defineConfig } from 'vite'
|
|
import { resolve } from "path";
|
|
import react from '@vitejs/plugin-react-swc'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
build: {
|
|
sourcemap: true,
|
|
rollupOptions: {
|
|
input: {
|
|
main: resolve(__dirname, 'index.html'),
|
|
404: resolve(__dirname, '404.html'),
|
|
}
|
|
}
|
|
}
|
|
}
|
|
)
|