On this page

An object with entry point description.

Type:boolean

Enable/disable creating async chunks that are loaded on demand.

Type:string

Base uri for this entry.

Type:string | false

The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).

Type:string[]

The entrypoints that the current entrypoint depend on. They must be loaded when this entrypoint is loaded.

Specifies the filename of output files on disk. You must not specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.

Type:boolean

Generate an HTML file for this entrypoint with its JS and CSS output chunks injected. Overrides output.html for this entry.

Type:string[]

Module(s) that are loaded upon startup. The last one is exported.

Type:string | null

Specifies the layer in which modules of this entrypoint are placed.

Options for library.

The 'publicPath' specifies the public URL address of the output files when referenced in a browser.

Type:string | false

The name of the runtime chunk. If set a runtime chunk with this name is created or an existing entrypoint is used as runtime.

Type:string | false

The method of loading WebAssembly Modules (methods included by default are 'fetch' (web/WebWorker), 'async-node' (node.js), but others might be added by plugins).

Type:boolean

Mark this entry as a worker so its output file uses 'output.workerChunkFilename'.