Skip to content

Commit

Permalink
add vite stub
Browse files Browse the repository at this point in the history
  • Loading branch information
turbo124 committed Jun 5, 2024
1 parent 4e7c03a commit 639ce44
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions vite.config.ts.react
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import tsconfigPaths from 'vite-tsconfig-paths';

export default defineConfig({
plugins: [tsconfigPaths(), react()],
server: {
port: 3000,
},
build: {
assetsDir: '',
chunkSizeWarningLimit: 1500,
rollupOptions: {
output: {
// This will output a single bundle file
entryFileNames: 'bundle.js',
chunkFileNames: 'bundle.js'
}
},
},
});

0 comments on commit 639ce44

Please sign in to comment.