Skip to content

Commit

Permalink
πŸ§‘β€πŸ’» θ°ƒζ•΄ chunk warn size
Browse files Browse the repository at this point in the history
  • Loading branch information
BTMuli committed Jul 9, 2024
1 parent 5e32cce commit bd124e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ export default defineConfig({
minify: !process.env.TAURI_DEBUG ? "esbuild" : false,
// produce sourcemaps for debug builds
sourcemap: !!process.env.TAURI_DEBUG,
// chunk size warning limit, default is 500kB,here set 4096KB which is 4MB
chunkSizeWarningLimit: 4096, // KB
// rollup options
rollupOptions: {
// chunking
Expand Down

0 comments on commit bd124e4

Please sign in to comment.