6

Webpack is outputting something like

[78] multi ./src/index.js 28 bytes {0} [built]

What does the multi on this line mean?

lilezek
  • 6,976
  • 1
  • 27
  • 45
trusktr
  • 44,284
  • 53
  • 191
  • 263

1 Answers1

1

multi means multi-file, in other words the multiple webpack entries as an array.

Depends on the entry object, webpack, internally has different approach to handle it. When entry is an array, then MultiEntryPlugin.js is called.

That is the internal flow to follow:

WebpackOptionsApply >

EntryOptionPlugin >

  1. SingleEntryPlugin, if entry is object
  2. MultiEntryPlugin, if entry is array
  3. DynamicEntryPlugin, if entry is function

You can see the test case here: https://github.com/webpack/webpack/tree/v3.4.1/test/binCases/entry/multi-file

José Quinto Zamora
  • 2,070
  • 12
  • 15