The filename of asset modules as relative path inside the 'output.path' directory.
Enable/disable creating async chunks that are loaded on demand.
Add charset attribute for script tag.
Specifies the filename template of output files of non-initial chunks 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.
The format of chunks (formats included by default are 'array-push' (web/WebWorker), 'commonjs' (node.js), 'module' (ESM), but others might be added by plugins).
Number of milliseconds before chunk request expires.
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).
The global variable used by webpack for loading of chunks.
Clean the output directory before emit.
Check if to be emitted file already exists and have the same content before writing to output filesystem.
This option enables cross-origin loading of chunks.
Specifies the filename template of non-initial output css 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.
Specifies the filename template of output css 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.
Similar to output.devtoolModuleFilenameTemplate
, but used in the case of duplicate module identifiers.
Filename template string of function for the sources array in a generated SourceMap.
Module namespace to use when interpolating filename template string for the sources array in a generated SourceMap. Defaults to output.library
if not set. It's useful for avoiding runtime collisions in sourcemaps from multiple webpack projects built as libraries.
List of chunk loading types enabled for use by entry points.
List of library types enabled for use by entry points.
List of wasm loading types enabled for use by entry points.
The abilities of the environment where the webpack generated code should run.
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.
An expression which is used to address the global object/scope in runtime code.
Digest type used for the hash.
Number of chars which are used for the hash.
Algorithm used for generation the hash (see node.js crypto package).
Any string which is added to the hash to salt it.
The filename of the Hot Update Chunks. They are inside the output.path directory.
The global variable used by webpack for loading of hot update chunks.
The filename of the Hot Update Main File. It is inside the 'output.path' directory.
Ignore warnings in the browser.
Wrap javascript code into IIFE's to avoid leaking into global scope.
The name of the native import() function (can be exchanged for a polyfill).
The name of the native import.meta object (can be exchanged for a polyfill).
Options for library.
Output javascript files as module source type.
The output directory as absolute path (required).
Include comments with information about the modules.
The 'publicPath' specifies the public URL address of the output files when referenced in a browser.
This option enables loading async chunks via a custom script type, such as script type="module".
The filename of the SourceMaps for the JavaScript files. They are inside the 'output.path' directory.
Prefixes every line of the source in the bundle with this string.
Handles error in module loading correctly at a performance cost. This will handle module error compatible with the EcmaScript Modules spec.
Handles exceptions in module loading correctly at a performance cost (Deprecated). This will handle module error compatible with the Node.js CommonJS way.
Use a Trusted Types policy to create urls for chunks.
A unique name of the webpack build to avoid multiple webpack runtimes to conflict when using globals.
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).
The filename of WebAssembly modules as relative path inside the 'output.path' directory.
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).
Worker public path. Much like the public path, this sets the location where the worker script file is intended to be found. If not set, webpack will use the publicPath. Don't set this option unless your worker scripts are located at a different path from your other script files.
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).
Normalized options affecting the output of the compilation.
output
options tell webpack how to write the compiled files to disk.