25 lines
512 B
TypeScript
25 lines
512 B
TypeScript
import react from '@vitejs/plugin-react';
|
|
import { defineConfig } from 'vite';
|
|
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
// outDir に manifest.json を出力
|
|
manifest: true,
|
|
rollupOptions: {
|
|
// デフォルトの .html エントリを上書き
|
|
input: 'src/init.tsx',
|
|
},
|
|
},
|
|
plugins: [
|
|
react(),
|
|
tsconfigPaths(),
|
|
],
|
|
server: {
|
|
origin: 'http://localhost:4000/vite',
|
|
watch: {
|
|
usePolling: true,
|
|
},
|
|
},
|
|
});
|