mirror of
https://github.com/alex8088/electron-vite.git
synced 2025-04-06 04:05:44 +08:00
perf: disable gzip-compressed size reporting, increase build performance
This commit is contained in:
parent
fab097e367
commit
969dc30e50
@ -70,6 +70,7 @@ export function electronMainVitePlugin(options?: ElectronPluginOptions): Plugin[
|
|||||||
entryFileNames: '[name].js'
|
entryFileNames: '[name].js'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
reportCompressedSize: false,
|
||||||
minify: false
|
minify: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -138,6 +139,7 @@ export function electronPreloadVitePlugin(options?: ElectronPluginOptions): Plug
|
|||||||
entryFileNames: '[name].js'
|
entryFileNames: '[name].js'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
reportCompressedSize: false,
|
||||||
minify: false
|
minify: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -244,6 +246,7 @@ export function electronRendererVitePlugin(options?: ElectronPluginOptions): Plu
|
|||||||
input: findInput(root),
|
input: findInput(root),
|
||||||
external: [...builtinModules.flatMap(m => [m, `node:${m}`])]
|
external: [...builtinModules.flatMap(m => [m, `node:${m}`])]
|
||||||
},
|
},
|
||||||
|
reportCompressedSize: false,
|
||||||
minify: false,
|
minify: false,
|
||||||
emptyOutDir: emptyOutDir()
|
emptyOutDir: emptyOutDir()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user