You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--extends <value...> Path to the configuration to be extended (only works when using webpack-cli).
102
+
--extends-reset Clear all items provided in 'extends' configuration. Extend configuration from another configuration (only works when using webpack-cli).
100
103
--externals <value...> Every matched dependency becomes external. An exact matched dependency becomes external. The same string is used as external dependency.
101
104
--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`.
102
105
--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.
@@ -640,6 +643,8 @@ Options:
640
643
--output-hot-update-chunk-filename <value> The filename of the Hot Update Chunks. They are inside the output.path directory.
641
644
--output-hot-update-global <value> The global variable used by webpack for loading of hot update chunks.
642
645
--output-hot-update-main-filename <value> The filename of the Hot Update Main File. It is inside the 'output.path' directory.
646
+
--output-ignore-browser-warnings Ignore warnings in the browser.
--output-iife Wrap javascript code into IIFE's to avoid leaking into global scope.
644
649
--no-output-iife Negative 'output-iife' option.
645
650
--output-import-function-name <value> The name of the native import() function (can be exchanged for a polyfill).
@@ -682,6 +687,7 @@ Options:
682
687
--output-strict-module-exception-handling Handles exceptions in module loading correctly at a performance cost (Deprecated). This will handle module error compatible with the Node.js CommonJS way.
--output-trusted-types [value] Use a Trusted Types policy to create urls for chunks. 'output.uniqueName' is used a default policy name. Passing a string sets a custom policy name. The name of the Trusted Types policy created by webpack to serve bundle chunks.
690
+
--output-trusted-types-on-policy-creation-failure <value> If the call to `trustedTypes.createPolicy(...)` fails -- e.g., due to the policy name missing from the CSP `trusted-types` list, or it being a duplicate name, etc. -- controls whether to continue with loading in the hope that `require-trusted-types-for 'script'` isn't enforced yet, versus fail immediately. Default behavior is 'stop'.
685
691
--output-trusted-types-policy-name <value> The name of the Trusted Types policy created by webpack to serve bundle chunks.
686
692
--output-unique-name <value> A unique name of the webpack build to avoid multiple webpack runtimes to conflict when using globals.
687
693
--output-wasm-loading <value> 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).
--stats-errors-space <value> Space to display errors (value is in number of lines).
893
900
--stats-exclude-assets <value...> Suppress assets that match the specified filters. Filters can be Strings, RegExps or Functions.
894
901
--stats-exclude-assets-reset Clear all items provided in 'stats.excludeAssets' configuration. Suppress assets that match the specified filters. Filters can be Strings, RegExps or Functions.
895
902
--stats-exclude-modules [value...] Suppress modules that match the specified filters. Filters can be Strings, RegExps, Booleans or Functions.
--stats-warnings-filter <value...> Suppress listing warnings that match the specified filters (they will still be counted). Filters can be Strings, RegExps or Functions.
980
987
--stats-warnings-filter-reset Clear all items provided in 'stats.warningsFilter' configuration. Suppress listing warnings that match the specified filters (they will still be counted). Filters can be Strings, RegExps or Functions.
988
+
--stats-warnings-space <value> Space to display warnings (value is in number of lines).
981
989
-t, --target <value...> Environment to build for. Environment to build for. An array of environments to build for all of them when possible.
982
990
--no-target Negative 'target' option.
983
991
--target-reset Clear all items provided in 'target' configuration. Environment to build for. An array of environments to build for all of them when possible.
0 commit comments