misskey-tools/packages/frontend/vite.config.ts

25 lines
512 B
TypeScript
Raw Normal View History

2023-04-24 12:30:51 +09:00
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',
},
},
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,
},
},
});