brainatlas.brain.riken.jp/vite.config.ts

18 lines
438 B
TypeScript
Raw Normal View History

2023-07-28 22:05:26 +09:00
import react from '@vitejs/plugin-react-swc';
import { defineConfig } from 'vite';
import nodePolyfills from 'vite-plugin-node-stdlib-browser';
import pluginRewriteAll from 'vite-plugin-rewrite-all';
// https://vitejs.dev/config/
export default defineConfig(({ mode }) => {
return {
build: {
outDir: 'build',
},
plugins: [react(), nodePolyfills(), pluginRewriteAll()],
server: {
port: 3000,
},
};
});