What's the difference between “names” and “chunks” in CommonsChunkPlugin?

心已入冬 提交于 2019-12-11 11:04:46

问题


What's the difference between those two fields in plugins options?

How are they related to each other? Which one is executed first, which one second? How can I pick a package from a chunk info a separate file with these options?

  name: string, // or
  names: string[],
  chunks: string[],

What does highlighted text below mean for chunks: string[] option? How to read child in that context?

// Select the source chunks by chunk names. The chunk must be a child of the commons chunk. // If omitted all entry chunks are selected.

Webpack and particularly its splitting features is something that is very unfriendly, rather difficult to understand and use.

来源:https://stackoverflow.com/questions/48497079/whats-the-difference-between-names-and-chunks-in-commonschunkplugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!