Skip to content

Commit 82cfad0

Browse files
author
chengyu.chengyulia
committed
feat: improve dev performance
1 parent efe7ba4 commit 82cfad0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/utils/webpack-config.ts

+6
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,12 @@ export const getWebpackConfig = async (opts: IOptions) => {
365365
config.performance = {};
366366
}
367367
config.performance.hints = false;
368+
369+
// Improve dev performance https://v4.webpack.js.org/guides/build-performance/#development
370+
config.optimization.removeAvailableModules = false;
371+
config.optimization.removeEmptyChunks = false;
372+
config.optimization.splitChunks = false;
373+
config.output.pathinfo = false;
368374
}
369375

370376
return plugin.buildConfigPipes.reduce(async (newConfig, fn) => {

0 commit comments

Comments
 (0)