The interview oliver

Optimal point

HMR

HTML doesn’t use HMR because there’s only one file, and if you change it, it changes, so you don’t need HMR

Only non-entry files can do the HMR function

Principle of thermal renewal

source-map

Optimizing the allocation of

oneof

Improved build speed reading, a file will not be loader multiple times

The cache

Js cache Babel cache

The file resource cache hash the file name

All code blocks referenced by an entry file are the same chunk

tree shaking

The code segment

Configure multiple entry files

The configuration optimization

Use es10 new syntax

Lazy loading preloading

PWA

Multi-process packaging

External and Resolve configurations

Ignore the js files generated at the end of some package calls

dll

Extract the public

Module federation (webpack5)

The caller

conclusion

Configure the React package plug-in

webpack5