yude.jp/vite.config.ts
2024-03-11 16:17:44 +09:00

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'),
}
}
}
}
)