webpack/examples/code-splitting-depend-on-ad.../template.md

739 B

This example shows how to use Code Splitting with entrypoint dependOn

webpack.config.js

_{{webpack.config.js}}_

app.js

_{{app.js}}_

page1.js

_{{page1.js}}_

lazy.js

_{{lazy.js}}_

other-vendors.js

_{{other-vendors.js}}_

dist/runtime.js

_{{dist/runtime.js}}_

dist/app.js

_{{dist/app.js}}_

dist/page1.js

_{{dist/page1.js}}_

dist/other-vendors.js

_{{dist/other-vendors.js}}_

dist/react-vendors.js

_{{dist/react-vendors.js}}_

Info

Unoptimized

_{{stdout}}_

Production mode

_{{production:stdout}}_