``` ⬡ webpack ──────────────────────────────────────────────────────────────────────── The build tool for modern web applications. Usage: webpack [entries...] [options] | webpack [command] [options] Options ──────────────────────────────────────────────────────────────────────── -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. -m, --merge Merge two or more configurations using 'webpack-merge'. --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". --config-node-env Sets process.env.NODE_ENV to the specified value for access within the configuration. --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. --progress [value] Print compilation progress during build. -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. --disable-interpret Disable interpret for loading the config file. --no-amd Negative 'amd' option. --bail Report the first error as a hard error instead of tolerating it. --no-bail Negative 'bail' option. --cache Enable in memory caching. Disable caching. --no-cache Negative 'cache' option. --cache-cache-unaffected Additionally cache computation of modules that are unchanged and reference only unchanged modules. --no-cache-cache-unaffected Negative 'cache-cache-unaffected' option. --cache-max-generations Number of generations unused cache entries stay in memory cache at minimum (1 = may be removed after unused for a single compilation, ..., Infinity: kept forever). --cache-type In memory caching. Filesystem caching. --cache-allow-collecting-memory Allows to collect unused memory allocated during deserialization. This requires copying data into smaller buffers and has a performance cost. --no-cache-allow-collecting-memory Negative 'cache-allow-collecting-memory' option. --cache-cache-directory Base directory for the cache (defaults to node_modules/.cache/webpack). --cache-cache-location Locations for the cache (defaults to cacheDirectory / name). --cache-compression Compression type used for the cache files. --no-cache-compression Negative 'cache-compression' option. --cache-hash-algorithm Algorithm used for generation the hash (see node.js crypto package). --cache-idle-timeout Time in ms after which idle period the cache storing should happen. --cache-idle-timeout-after-large-changes Time in ms after which idle period the cache storing should happen when larger changes has been detected (cumulative build time > 2 x avg cache store time). --cache-idle-timeout-for-initial-store Time in ms after which idle period the initial cache storing should happen. --cache-immutable-paths A RegExp matching an immutable directory (usually a package manager cache directory, including the tailing slash) A path to an immutable directory (usually a package manager cache directory). --cache-immutable-paths-reset Clear all items provided in 'cache.immutablePaths' configuration. List of paths that are managed by a package manager and contain a version or hash in its path so all files are immutable. --cache-managed-paths A RegExp matching a managed directory (usually a node_modules directory, including the tailing slash) A path to a managed directory (usually a node_modules directory). --cache-managed-paths-reset Clear all items provided in 'cache.managedPaths' configuration. List of paths that are managed by a package manager and can be trusted to not be modified otherwise. --cache-max-age Time for which unused cache entries stay in the filesystem cache at minimum (in milliseconds). --cache-max-memory-generations Number of generations unused cache entries stay in memory cache at minimum (0 = no memory cache used, 1 = may be removed after unused for a single compilation, ..., Infinity: kept forever). Cache entries will be deserialized from disk when removed from memory cache. --cache-memory-cache-unaffected Additionally cache computation of modules that are unchanged and reference only unchanged modules in memory. --no-cache-memory-cache-unaffected Negative 'cache-memory-cache-unaffected' option. --cache-name Name for the cache. Different names will lead to different coexisting caches. --cache-profile Track and log detailed timing information for individual cache items. --no-cache-profile Negative 'cache-profile' option. --cache-readonly Enable/disable readonly mode. --no-cache-readonly Negative 'cache-readonly' option. --cache-store When to store data to the filesystem. (pack: Store data when compiler is idle in a single file). --cache-version 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 The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory. --dependencies References to another configuration to depend on. --dependencies-reset Clear all items provided in 'dependencies' configuration. References to other configurations to depend on. --no-dev-server Negative 'dev-server' option. --devtool-type Which asset type should receive this devtool value. --devtool-use A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). --no-devtool-use Negative 'devtool-use' option. --devtool-reset Clear all items provided in 'devtool' configuration. A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). --no-devtool Negative 'devtool' option. --dotenv Enable Dotenv plugin with default options. --no-dotenv Negative 'dotenv' option. --dotenv-dir The directory from which .env files are loaded. Can be an absolute path, false will disable the .env file loading. --no-dotenv-dir Negative 'dotenv-dir' option. --dotenv-prefix A prefix that environment variables must start with to be exposed. --dotenv-prefix-reset Clear all items provided in 'dotenv.prefix' configuration. Only expose environment variables that start with these prefixes. Defaults to 'WEBPACK_'. --dotenv-template A template pattern for .env file names. --dotenv-template-reset Clear all items provided in 'dotenv.template' configuration. Template patterns for .env file names. Use [mode] as placeholder for the webpack mode. Defaults to ['.env', '.env.local', '.env.[mode]', '.env.[mode].local']. --entry A module that is loaded upon startup. Only the last one is exported. --entry-reset Clear all items provided in 'entry' configuration. All modules are loaded upon startup. The last one is exported. --experiments-async-web-assembly [value] Enable the built-in async WebAssembly support only when no loader is registered for WebAssembly files. Enable/disable the built-in async WebAssembly support. --no-experiments-async-web-assembly Negative 'experiments-async-web-assembly' option. --experiments-back-compat Enable backward-compat layer with deprecation warnings for many webpack 4 APIs. --no-experiments-back-compat Negative 'experiments-back-compat' option. --experiments-build-http-allowed-uris Allowed URI pattern. Allowed URI (resp. the beginning of it). --experiments-build-http-allowed-uris-reset Clear all items provided in 'experiments.buildHttp.allowedUris' configuration. List of allowed URIs (resp. the beginning of them). --experiments-build-http-cache-location Location where resource content is stored for lockfile entries. It's also possible to disable storing by passing false. --no-experiments-build-http-cache-location Negative 'experiments-build-http-cache-location' option. --experiments-build-http-frozen When set, anything that would lead to a modification of the lockfile or any resource content, will result in an error. --no-experiments-build-http-frozen Negative 'experiments-build-http-frozen' option. --experiments-build-http-lockfile-location Location of the lockfile. --experiments-build-http-proxy Proxy configuration, which can be used to specify a proxy server to use for HTTP requests. --experiments-build-http-upgrade When set, resources of existing lockfile entries will be fetched and entries will be upgraded when resource content has changed. --no-experiments-build-http-upgrade Negative 'experiments-build-http-upgrade' option. --experiments-cache-unaffected Enable additional in memory caching of modules that are unchanged and reference only unchanged modules. --no-experiments-cache-unaffected Negative 'experiments-cache-unaffected' option. --experiments-css [value] Enable the built-in CSS support only when no loader is registered for CSS files. Enable/disable the built-in CSS support. --no-experiments-css Negative 'experiments-css' option. --experiments-defer-import Enable experimental tc39 proposal https://github.com/tc39/proposal-defer-import-eval. This allows to defer execution of a module until it's first use. --no-experiments-defer-import Negative 'experiments-defer-import' option. --experiments-future-defaults Apply defaults of next major version. --no-experiments-future-defaults Negative 'experiments-future-defaults' option. --experiments-html [value] Enable the built-in HTML support only when no loader is registered for HTML files. Enable/disable the built-in HTML support. --no-experiments-html Negative 'experiments-html' option. --experiments-lazy-compilation Compile entrypoints and import()s only when they are accessed. --no-experiments-lazy-compilation Negative 'experiments-lazy-compilation' option. --experiments-lazy-compilation-backend-client A custom client. --experiments-lazy-compilation-backend-listen A port. --experiments-lazy-compilation-backend-listen-host A host. --experiments-lazy-compilation-backend-listen-port A port. --experiments-lazy-compilation-backend-protocol Specifies the protocol the client should use to connect to the server. --experiments-lazy-compilation-entries Enable/disable lazy compilation for entries. --no-experiments-lazy-compilation-entries Negative 'experiments-lazy-compilation-entries' option. --experiments-lazy-compilation-imports Enable/disable lazy compilation for import() modules. --no-experiments-lazy-compilation-imports Negative 'experiments-lazy-compilation-imports' option. --experiments-lazy-compilation-test Specify which entrypoints or import()ed modules should be lazily compiled. This is matched with the imported module and not the entrypoint name. --experiments-lazy-compilation-test-glob A glob pattern matched against a path, using `/` as path separator on every OS; a `!` prefix excludes what it matches. --experiments-lazy-compilation-test-glob-reset Clear all items provided in 'experiments.lazyCompilation.test.glob' configuration. A list of glob patterns. --experiments-source-import Enable experimental tc39 proposal https://github.com/tc39/proposal-source-phase-imports. This allows importing modules at source phase. --no-experiments-source-import Negative 'experiments-source-import' option. --experiments-sync-web-assembly Support WebAssembly as synchronous EcmaScript Module (outdated). --no-experiments-sync-web-assembly Negative 'experiments-sync-web-assembly' option. --experiments-typescript [value] Enable the built-in TypeScript support only when Node.js supports it (>= 22.6) and no loader is registered for TypeScript files. Enable/disable the built-in TypeScript support. --no-experiments-typescript Negative 'experiments-typescript' option. -e, --extends Path to the configuration to be extended (only works when using webpack-cli). --extends-reset Clear all items provided in 'extends' configuration. Extend configuration from another configuration (only works when using webpack-cli). --externals Every matched dependency becomes external. An exact matched dependency becomes external. The same string is used as external dependency. --externals-reset Clear all items provided in 'externals' configuration. Specify dependencies that shouldn't be resolved by webpack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`. --externals-presets-bun Treat bun built-in modules like 'bun', 'bun:sqlite' or 'bun:ffi' and node.js built-in modules as external and load them via import when used (for the Bun runtime). --no-externals-presets-bun Negative 'externals-presets-bun' option. --externals-presets-deno Treat node.js built-in modules like fs, path or vm as external and load them via the required 'node:' specifier when used (for the Deno runtime). --no-externals-presets-deno Negative 'externals-presets-deno' option. --externals-presets-electron Treat common electron built-in modules in main and preload context like 'electron', 'ipc' or 'shell' as external and load them via require() when used. --no-externals-presets-electron Negative 'externals-presets-electron' option. --externals-presets-electron-main Treat electron built-in modules in the main context like 'app', 'ipc-main' or 'shell' as external and load them via require() when used. --no-externals-presets-electron-main Negative 'externals-presets-electron-main' option. --externals-presets-electron-preload Treat electron built-in modules in the preload context like 'web-frame', 'ipc-renderer' or 'shell' as external and load them via require() when used. --no-externals-presets-electron-preload Negative 'externals-presets-electron-preload' option. --externals-presets-electron-renderer Treat electron built-in modules in the renderer context like 'web-frame', 'ipc-renderer' or 'shell' as external and load them via require() when used. --no-externals-presets-electron-renderer Negative 'externals-presets-electron-renderer' option. --externals-presets-node Treat node.js built-in modules like fs, path or vm as external and load them via require() when used. --no-externals-presets-node Negative 'externals-presets-node' option. --externals-presets-node-modules Enable or disable externalizing installed packages. --no-externals-presets-node-modules Negative 'externals-presets-node-modules' option. --externals-presets-node-modules-allowlist Requests matching the RegExp stay bundled. An exact request that should stay bundled. --externals-presets-node-modules-allowlist-reset Clear all items provided in 'externalsPresets.nodeModules.allowlist' configuration. Keep these requests bundled instead of externalizing them. --externals-presets-nwjs Treat NW.js legacy nw.gui module as external and load it via require() when used. --no-externals-presets-nwjs Negative 'externals-presets-nwjs' option. --externals-presets-web Treat references to 'http(s)://...' and 'std:...' as external and load them via import when used (Note that this changes execution order as externals are executed before any other code in the chunk). --no-externals-presets-web Negative 'externals-presets-web' option. --externals-presets-web-async Treat references to 'http(s)://...' and 'std:...' as external and load them via async import() when used (Note that this external type is an async module, which has various effects on the execution). --no-externals-presets-web-async Negative 'externals-presets-web-async' option. --externals-type Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value). --ignore-warnings A RegExp to select the warning message. --ignore-warnings-file A RegExp or a glob to select the origin file for the warning. A glob matching the origin file for the warning at any depth. --ignore-warnings-message A RegExp to select the warning message. --ignore-warnings-module A RegExp to select the origin module for the warning. --ignore-warnings-reset Clear all items provided in 'ignoreWarnings' configuration. Ignore specific warnings. --infrastructure-logging-append-only Only appends lines to the output. Avoids updating existing output e. g. for status messages. This option is only used when no custom console is provided. --no-infrastructure-logging-append-only Negative 'infrastructure-logging-append-only' option. --infrastructure-logging-colors Enables/Disables colorful output. This option is only used when no custom console is provided. --no-infrastructure-logging-colors Negative 'infrastructure-logging-colors' option. --infrastructure-logging-debug [value...] Enable/Disable debug logging for all loggers. Enable debug logging for specific loggers. --no-infrastructure-logging-debug Negative 'infrastructure-logging-debug' option. --infrastructure-logging-debug-reset Clear all items provided in 'infrastructureLogging.debug' configuration. Enable debug logging for specific loggers. --infrastructure-logging-level Log level. --infrastructure-logging-progress [value] Show build progress. `"auto"` shows it only for interactive terminals. This option is only used when no custom console is provided. --no-infrastructure-logging-progress Negative 'infrastructure-logging-progress' option. --mode Enable production optimizations or development hints. --module-expr-context-critical Enable warnings for full dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.exprContextCritical'. --no-module-expr-context-critical Negative 'module-expr-context-critical' option. --module-expr-context-recursive Enable recursive directory lookup for full dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.exprContextRecursive'. --no-module-expr-context-recursive Negative 'module-expr-context-recursive' option. --module-expr-context-reg-exp [value] Sets the default regular expression for full dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.exprContextRegExp'. --no-module-expr-context-reg-exp Negative 'module-expr-context-reg-exp' option. --module-expr-context-request Set the default request for full dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.exprContextRequest'. --module-generator-asset-binary Whether or not this asset module should be considered binary. This can be set to 'false' to treat this asset module as text. --no-module-generator-asset-binary Negative 'module-generator-asset-binary' option. --module-generator-asset-data-url-encoding Asset encoding (defaults to base64). --no-module-generator-asset-data-url-encoding Negative 'module-generator-asset-data-url-encoding' option. --module-generator-asset-data-url-mimetype Asset mimetype (getting from file extension by default). --module-generator-asset-emit Emit an output asset from this asset module. This can be set to 'false' to omit emitting e. g. for SSR. --no-module-generator-asset-emit Negative 'module-generator-asset-emit' option. --module-generator-asset-filename The filename of asset modules as relative path inside the 'output.path' directory. --module-generator-asset-output-path Emit the asset in the specified folder relative to 'output.path'. This should only be needed when custom 'publicPath' is specified to match the folder structure there. --module-generator-asset-public-path The 'publicPath' specifies the public URL address of the output files when referenced in a browser. --module-generator-asset-inline-binary Whether or not this asset module should be considered binary. This can be set to 'false' to treat this asset module as text. --no-module-generator-asset-inline-binary Negative 'module-generator-asset-inline-binary' option. --module-generator-asset-inline-data-url-encoding Asset encoding (defaults to base64). --no-module-generator-asset-inline-data-url-encoding Negative 'module-generator-asset-inline-data-url-encoding' option. --module-generator-asset-inline-data-url-mimetype Asset mimetype (getting from file extension by default). --module-generator-asset-resource-binary Whether or not this asset module should be considered binary. This can be set to 'false' to treat this asset module as text. --no-module-generator-asset-resource-binary Negative 'module-generator-asset-resource-binary' option. --module-generator-asset-resource-emit Emit an output asset from this asset module. This can be set to 'false' to omit emitting e. g. for SSR. --no-module-generator-asset-resource-emit Negative 'module-generator-asset-resource-emit' option. --module-generator-asset-resource-filename The filename of asset modules as relative path inside the 'output.path' directory. --module-generator-asset-resource-output-path Emit the asset in the specified folder relative to 'output.path'. This should only be needed when custom 'publicPath' is specified to match the folder structure there. --module-generator-asset-resource-public-path The 'publicPath' specifies the public URL address of the output files when referenced in a browser. --module-generator-css-es-module Configure the generated JS modules that use the ES modules syntax. --no-module-generator-css-es-module Negative 'module-generator-css-es-module' option. --module-generator-css-exports-only Avoid generating and loading a stylesheet and only embed exports from css into output javascript files. --no-module-generator-css-exports-only Negative 'module-generator-css-exports-only' option. --module-generator-css-auto-es-module Configure the generated JS modules that use the ES modules syntax. --no-module-generator-css-auto-es-module Negative 'module-generator-css-auto-es-module' option. --module-generator-css-auto-export-type Configure how CSS content is exported as default. --module-generator-css-auto-exports-convention Specifies the convention of exported names. --module-generator-css-auto-exports-only Avoid generating and loading a stylesheet and only embed exports from css into output javascript files. --no-module-generator-css-auto-exports-only Negative 'module-generator-css-auto-exports-only' option. --module-generator-css-auto-local-ident-hash-digest Digest types used for the hash. --module-generator-css-auto-local-ident-hash-digest-length Number of chars which are used for the hash. --module-generator-css-auto-local-ident-hash-function Algorithm used for generation the hash (see node.js crypto package). --module-generator-css-auto-local-ident-hash-salt Any string which is added to the hash to salt it. --module-generator-css-auto-local-ident-name Configure the generated local ident name. --module-generator-css-global-es-module Configure the generated JS modules that use the ES modules syntax. --no-module-generator-css-global-es-module Negative 'module-generator-css-global-es-module' option. --module-generator-css-global-export-type Configure how CSS content is exported as default. --module-generator-css-global-exports-convention Specifies the convention of exported names. --module-generator-css-global-exports-only Avoid generating and loading a stylesheet and only embed exports from css into output javascript files. --no-module-generator-css-global-exports-only Negative 'module-generator-css-global-exports-only' option. --module-generator-css-global-local-ident-hash-digest Digest types used for the hash. --module-generator-css-global-local-ident-hash-digest-length Number of chars which are used for the hash. --module-generator-css-global-local-ident-hash-function Algorithm used for generation the hash (see node.js crypto package). --module-generator-css-global-local-ident-hash-salt Any string which is added to the hash to salt it. --module-generator-css-global-local-ident-name Configure the generated local ident name. --module-generator-css-module-es-module Configure the generated JS modules that use the ES modules syntax. --no-module-generator-css-module-es-module Negative 'module-generator-css-module-es-module' option. --module-generator-css-module-export-type Configure how CSS content is exported as default. --module-generator-css-module-exports-convention Specifies the convention of exported names. --module-generator-css-module-exports-only Avoid generating and loading a stylesheet and only embed exports from css into output javascript files. --no-module-generator-css-module-exports-only Negative 'module-generator-css-module-exports-only' option. --module-generator-css-module-local-ident-hash-digest Digest types used for the hash. --module-generator-css-module-local-ident-hash-digest-length Number of chars which are used for the hash. --module-generator-css-module-local-ident-hash-function Algorithm used for generation the hash (see node.js crypto package). --module-generator-css-module-local-ident-hash-salt Any string which is added to the hash to salt it. --module-generator-css-module-local-ident-name Configure the generated local ident name. --module-generator-html-extract [value] Emit the parsed and URL-rewritten HTML as a standalone `.html` output file alongside the module's JavaScript export. `true` always emits the file; `false` never does; `"inline"` exposes the processed HTML for inline write-back (e.g. `