yude.jp/vite.config.ts

18 lines
358 B
TypeScript
Raw Normal View History

2024-01-15 13:28:35 +00:00
import { defineConfig } from 'vite'
2024-02-27 09:47:28 +00:00
import { resolve } from "path";
2024-01-15 13:28:35 +00:00
import react from '@vitejs/plugin-react-swc'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
2024-02-27 09:47:28 +00:00
build: {
rollupOptions: {
input: {
main: resolve(__dirname, 'index.html'),
404: resolve(__dirname, '404.html'),
}
}
}
}
)