Webpack是否可以并行构建多个入口点文件?

huangapple go评论67阅读模式
英文:

Does webpack build multiple entry point files in parallel?

问题

在我的Webpack配置中,我有多个入口点。我正在尝试弄清楚Webpack是否会并行构建它们?构建过程需要一些时间,我正在尝试提高Webpack的构建时间。

英文:

In my webpack config I have several entry points. I am trying to figure out if webpack builds them all in parallel or not? The build process takes a little longer and am trying to improve the webpack build time.

答案1

得分: 1

从webpack 4版本开始,默认支持多入口的并行处理。

但是,如果入口之间存在共享的依赖关系,webpack可能需要在处理各个入口之前构建这些依赖关系。在这种情况下,可以在一定程度上限制并行构建过程。

英文:

Starting from webpack version 4, it supports parallel processing for multiple entry points by default.

But,If there are shared dependencies between entry points, webpack may need to build those dependencies before processing the individual entry points. In such cases, parallel build process can be limited to some extent.

huangapple
  • 本文由 发表于 2023年6月29日 10:34:58
  • 转载请务必保留本文链接:https://go.coder-hub.com/76577738.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定