webpack/examples/code-splitting-specify-chun.../template.md

471 B

example.js

This example illustrates how to specify the chunk name in require.ensure() and import() to separated modules into separate chunks manually.

_{{example.js}}_

templates/

  • foo.js
  • baz.js
  • bar.js

All templates are of this pattern:

_{{templates/foo.js}}_

dist/output.js

_{{dist/output.js}}_

Info

Unoptimized

_{{stdout}}_

Production mode

_{{production:stdout}}_