description:"You can pass `false` to disable AMD support."
},
bail:{
types:["boolean"],
description:
"Report the first error as a hard error instead of tolerating it."
},
cache:{
types:["boolean"],
description:"Disable caching."
},
"cache-type":{
types:["string"],
description:"In memory caching"
},
"cache-cache-directory":{
types:["string"],
description:
"Base directory for the cache (defaults to node_modules/.cache/webpack)."
},
"cache-cache-location":{
types:["string"],
description:"Locations for the cache (defaults to cacheDirectory / name)."
},
"cache-hash-algorithm":{
types:["string"],
description:
"Algorithm used for generation the hash (see node.js crypto package)"
},
"cache-idle-timeout":{
types:["number"],
description:
"Time in ms after which idle period the cache storing should happen (only for store: 'pack' or 'idle')"
},
"cache-idle-timeout-for-initial-store":{
types:["number"],
description:
"Time in ms after which idle period the initial cache storing should happen (only for store: 'pack' or 'idle')"
},
"cache-name":{
types:["string"],
description:
"Name for the cache. Different names will lead to different coexisting caches."
},
"cache-store":{
types:["string"],
description:
"When to store data to the filesystem. (pack: Store data when compiler is idle in a single file)"
},
"cache-version":{
types:["string"],
description:
"Version of the cache data. Different versions won't allow to reuse the cache and override existing content. Update the version when config changed in a way which doesn't allow to reuse cache. This will invalidate the cache."
},
context:{
types:["string"],
description:
"The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory."
description:"Include a polyfill for the '__filename' variable"
},
"node-global":{
types:["boolean"],
description:"Include a polyfill for the 'global' variable"
},
"optimization-check-wasm-types":{
types:["boolean"],
description:
"Check for incompatible wasm types when importing/exporting from/to ESM"
},
"optimization-chunk-ids":{
types:["string","boolean"],
description:
"Define the algorithm to choose chunk ids (named: readable ids for better debugging, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, total-size: numeric ids focused on minimal total download size, false: no algorithm used, as custom one can be provided via plugin)"
},
"optimization-concatenate-modules":{
types:["boolean"],
description:
"Concatenate modules when possible to generate less modules, more efficient code and enable more optimizations by the minimizer"
},
"optimization-flag-included-chunks":{
types:["boolean"],
description:
"Also flag chunks as loaded which contain a subset of the modules"
},
"optimization-inner-graph":{
types:["boolean"],
description:
"Creates a module-internal dependency graph for top level symbols, exports and imports, to improve unused exports detection"
},
"optimization-mangle-exports":{
types:["boolean"],
description:
"Rename exports when possible to generate shorter code (depends on optimization.usedExports and optimization.providedExports)"
},
"optimization-mangle-wasm-imports":{
types:["boolean"],
description:"Reduce size of WASM by changing imports to shorter strings."
},
"optimization-merge-duplicate-chunks":{
types:["boolean"],
description:"Merge chunks which contain the same modules"
},
"optimization-minimize":{
types:["boolean"],
description:"Enable minimizing the output. Uses optimization.minimizer."
},
"optimization-module-ids":{
types:["string","boolean"],
description:
"Define the algorithm to choose module ids (natural: numeric ids in order of usage, named: readable ids for better debugging, hashed: (deprecated) short hashes as ids for better long term caching, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, false: no algorithm used, as custom one can be provided via plugin)"
},
"optimization-no-emit-on-errors":{
types:["boolean"],
description:"Avoid emitting assets when errors occur"
},
"optimization-node-env":{
types:["boolean","string"]
},
"optimization-portable-records":{
types:["boolean"],
description:
"Generate records with relative paths to be able to move the context folder"
},
"optimization-provided-exports":{
types:["boolean"],
description:
"Figure out which exports are provided by modules to generate more efficient code"
},
"optimization-remove-available-modules":{
types:["boolean"],
description:
"Removes modules from chunks when these modules are already included in all parents"
"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."
},
"output-ecma-version":{
types:["number"]
},
"output-filename":{
types:["string"]
},
"output-global-object":{
types:["string"],
description:
"An expression which is used to address the global object/scope in runtime code"
},
"output-hash-digest":{
types:["string"],
description:"Digest type used for the hash"
},
"output-hash-digest-length":{
types:["number"],
description:"Number of chars which are used for the hash"
},
"output-hash-function":{
types:["string"]
},
"output-hash-salt":{
types:["string"],
description:"Any string which is added to the hash to salt it"
},
"output-hot-update-chunk-filename":{
types:["string"],
description:
"The filename of the Hot Update Chunks. They are inside the output.path directory."
},
"output-hot-update-function":{
types:["string"],
description:
"The JSONP function used by webpack for async loading of hot update chunks."
},
"output-hot-update-main-filename":{
types:["string"],
description:
"The filename of the Hot Update Main File. It is inside the `output.path` directory."
},
"output-iife":{
types:["boolean"],
description:
"Wrap javascript code into IIFEs to avoid leaking into global scope."
},
"output-jsonp-function":{
types:["string"],
description:
"The JSONP function used by webpack for async loading of chunks."
},
"output-jsonp-script-type":{
types:["boolean","string"],
description:
'This option enables loading async chunks via a custom script type, such as script type="module"'
},
"output-library":{
types:["string"]
},
"output-library-amd":{
types:["string"],
description:"Name of the exposed AMD library in the UMD"
},
"output-library-commonjs":{
types:["string"],
description:"Name of the exposed commonjs export in the UMD"
},
"output-library-root":{
types:["string"]
},
"output-library-auxiliary-comment":{
types:["string"],
description:"Append the same comment above each import style."
},
"output-library-auxiliary-comment-amd":{
types:["string"],
description:"Set comment for `amd` section in UMD"
},
"output-library-auxiliary-comment-commonjs":{
types:["string"],
description:"Set comment for `commonjs` (exports) section in UMD"
},
"output-library-auxiliary-comment-commonjs2":{
types:["string"],
description:"Set comment for `commonjs2` (module.exports) section in UMD"
},
"output-library-auxiliary-comment-root":{
types:["string"],
description:"Set comment for `root` (global variable) section in UMD"
},
"output-library-export":{
types:["string"]
},
"output-library-name":{
types:["string"]
},
"output-library-name-amd":{
types:["string"],
description:"Name of the exposed AMD library in the UMD"
},
"output-library-name-commonjs":{
types:["string"],
description:"Name of the exposed commonjs export in the UMD"
},
"output-library-name-root":{
types:["string"]
},
"output-library-type":{
types:["string"],
description:"Type of library"
},
"output-library-umd-named-define":{
types:["boolean"],
description:
"If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module."
},
"output-library-target":{
types:["string"],
description:"Type of library"
},
"output-module":{
types:["boolean"],
description:"Output javascript files as module source type."
},
"output-path":{
types:["string"],
description:"The output directory as **absolute path** (required)."
},
"output-pathinfo":{
types:["boolean"],
description:"Include comments with information about the modules."
},
"output-public-path":{
types:["string"]
},
"output-source-map-filename":{
types:["string"],
description:
"The filename of the SourceMaps for the JavaScript files. They are inside the `output.path` directory."
},
"output-source-prefix":{
types:["string"],
description:
"Prefixes every line of the source in the bundle with this string."
},
"output-strict-module-exception-handling":{
types:["boolean"],
description:
"Handles exceptions in module loading correctly at a performance cost."
},
"output-umd-named-define":{
types:["boolean"],
description:
"If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module."
},
"output-unique-name":{
types:["string"],
description:
"A unique name of the webpack build to avoid multiple webpack runtimes to conflict when using globals."
},
"output-webassembly-module-filename":{
types:["string"],
description:
"The filename of WebAssembly modules as relative path inside the `output.path` directory."
},
parallelism:{
types:["number"],
description:"The number of parallel processed modules in the compilation."
},
performance:{
types:["boolean"]
},
"performance-hints":{
types:["boolean","string"],
description:
"Sets the format of the hints: warnings, errors or nothing at all"
},
"performance-max-asset-size":{
types:["number"],
description:
"Filesize limit (in bytes) when exceeded, that webpack will provide performance hints"
},
"performance-max-entrypoint-size":{
types:["number"],
description:"Total size of an entry point (in bytes)"
},
profile:{
types:["boolean"],
description:"Capture timing information for each module."