2023-04-24 12:30:51 +09:00
|
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
import { defineConfig } from 'vite';
|
|
|
|
import tsconfigPaths from 'vite-tsconfig-paths';
|
2023-04-03 05:05:36 +09:00
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
build: {
|
|
|
|
// outDir に manifest.json を出力
|
|
|
|
manifest: true,
|
|
|
|
rollupOptions: {
|
|
|
|
// デフォルトの .html エントリを上書き
|
|
|
|
input: 'src/init.tsx',
|
|
|
|
},
|
|
|
|
},
|
2023-04-05 02:54:01 +09:00
|
|
|
plugins: [
|
2023-04-24 12:30:51 +09:00
|
|
|
react(),
|
|
|
|
tsconfigPaths(),
|
|
|
|
],
|
|
|
|
server: {
|
2023-04-27 01:33:47 +09:00
|
|
|
origin: 'http://localhost:4000/vite',
|
2023-04-24 12:30:51 +09:00
|
|
|
watch: {
|
|
|
|
usePolling: true,
|
|
|
|
},
|
|
|
|
},
|
2023-04-03 05:05:36 +09:00
|
|
|
});
|