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

456 B

example.js

This example illustrates how to specify 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}}

js/output.js

{{js/output.js}}

Info

Unoptimized

{{stdout}}

Production mode

{{production:stdout}}