17 lines
361 B
TypeScript
17 lines
361 B
TypeScript
import { defineConfig } from "vite";
|
||
import react from "@vitejs/plugin-react";
|
||
|
||
export default defineConfig({
|
||
plugins: [react()],
|
||
server: {
|
||
port: 3000,
|
||
},
|
||
build: {
|
||
outDir: "dist",
|
||
rollupOptions: {
|
||
input: "index.html",
|
||
},
|
||
},
|
||
root: process.cwd(), // 現在の作業ディレクトリ(frontend)をルートとして明示
|
||
});
|