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…
Reference in a new issue