18 lines
438 B
TypeScript
18 lines
438 B
TypeScript
|
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,
|
||
|
},
|
||
|
};
|
||
|
});
|