Differences between chunks values initial (initial block), async (demand load block) and all (all blocks) in SplitChunksPlugin configuration

chunks: indicates the range of display blocks. There are three optional values:: initial (initial block, async (load on demand block), and all (all blocks). What"s the difference between these three by default: all;
. I don"t know the difference even though I"ve been looking for it for a long time

.
Apr.17,2021

Since

is a substitute for CommonsChunkPlugin in webpack v4, I think the difference should be taken literally, that is, it refers to the strategy and scope of dividing chunk. The default parameter is async.

if you have used an older version of wepback, you can also understand it corresponding to the chunks and aysnc configuration items of CommonsChunkPlugin .

Menu