AutomaticPrefetchPlugin

AutomaticPrefetchPlugin会提前发现以前编译中的所有模块,同时监视更改,试图缩短增量构建时间。与PrefetchPlugin相比,PrefetchPlugin可以提前发现单个模块。

警告
由于增量构建时间非常快,因此可能有性能优势,也可能没有。
module.exports = {
  // ...
  plugins: [new webpack.AutomaticPrefetchPlugin()],
};

 

插件中文:https://www.wenjiangs.com/doc/webpack-plugins

常用插件整理:https://jishuin.proginn.com/p/763bfbd54fbe

posted @ 2021-04-26 10:51  玛卡巴鉲  阅读(267)  评论(0编辑  收藏  举报