Skip to content

Commit a37e758

Browse files
docs: update (#4735)
Co-authored-by: alexander-akait <4567934+alexander-akait@users.noreply.github.com>
1 parent c422776 commit a37e758

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

OPTIONS.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ Options:
105105
--experiments-lazy-compilation-test <value> Specify which entrypoints or import()ed modules should be lazily compiled. This is matched with the imported module and not the entrypoint name.
106106
--experiments-output-module Allow output javascript files as module source type.
107107
--no-experiments-output-module Negative 'experiments-output-module' option.
108+
--experiments-source-import Enable experimental tc39 proposal https://github.com/tc39/proposal-source-phase-imports. This allows importing modules at source phase.
109+
--no-experiments-source-import Negative 'experiments-source-import' option.
108110
--experiments-sync-web-assembly Support WebAssembly as synchronous EcmaScript Module (outdated).
109111
--no-experiments-sync-web-assembly Negative 'experiments-sync-web-assembly' option.
110112
-e, --extends <value...> Path to the configuration to be extended (only works when using webpack-cli).
@@ -183,6 +185,7 @@ Options:
183185
--no-module-generator-css-auto-exports-only Negative 'module-generator-css-auto-exports-only' option.
184186
--module-generator-css-auto-local-ident-hash-digest <value> Digest types used for the hash.
185187
--module-generator-css-auto-local-ident-hash-digest-length <value> Number of chars which are used for the hash.
188+
--module-generator-css-auto-local-ident-hash-function <value> Algorithm used for generation the hash (see node.js crypto package).
186189
--module-generator-css-auto-local-ident-hash-salt <value> Any string which is added to the hash to salt it.
187190
--module-generator-css-auto-local-ident-name <value> Configure the generated local ident name.
188191
--module-generator-css-global-es-module Configure the generated JS modules that use the ES modules syntax.
@@ -193,6 +196,7 @@ Options:
193196
--no-module-generator-css-global-exports-only Negative 'module-generator-css-global-exports-only' option.
194197
--module-generator-css-global-local-ident-hash-digest <value> Digest types used for the hash.
195198
--module-generator-css-global-local-ident-hash-digest-length <value> Number of chars which are used for the hash.
199+
--module-generator-css-global-local-ident-hash-function <value> Algorithm used for generation the hash (see node.js crypto package).
196200
--module-generator-css-global-local-ident-hash-salt <value> Any string which is added to the hash to salt it.
197201
--module-generator-css-global-local-ident-name <value> Configure the generated local ident name.
198202
--module-generator-css-module-es-module Configure the generated JS modules that use the ES modules syntax.
@@ -203,6 +207,7 @@ Options:
203207
--no-module-generator-css-module-exports-only Negative 'module-generator-css-module-exports-only' option.
204208
--module-generator-css-module-local-ident-hash-digest <value> Digest types used for the hash.
205209
--module-generator-css-module-local-ident-hash-digest-length <value> Number of chars which are used for the hash.
210+
--module-generator-css-module-local-ident-hash-function <value> Algorithm used for generation the hash (see node.js crypto package).
206211
--module-generator-css-module-local-ident-hash-salt <value> Any string which is added to the hash to salt it.
207212
--module-generator-css-module-local-ident-name <value> Configure the generated local ident name.
208213
--module-generator-json-json-parse Use `JSON.parse` when the JSON string is longer than 20 characters.
@@ -331,6 +336,8 @@ Options:
331336
--no-module-parser-javascript-require-include Negative 'module-parser-javascript-require-include' option.
332337
--module-parser-javascript-require-js Enable/disable parsing of require.js special syntax like require.config, requirejs.config, require.version and requirejs.onError.
333338
--no-module-parser-javascript-require-js Negative 'module-parser-javascript-require-js' option.
339+
--module-parser-javascript-source-import Enable experimental tc39 proposal https://github.com/tc39/proposal-source-phase-imports. This allows importing modules at source phase.
340+
--no-module-parser-javascript-source-import Negative 'module-parser-javascript-source-import' option.
334341
--module-parser-javascript-strict-export-presence Deprecated in favor of "exportsPresence". Emit errors instead of warnings when imported names don't exist in imported module.
335342
--no-module-parser-javascript-strict-export-presence Negative 'module-parser-javascript-strict-export-presence' option.
336343
--module-parser-javascript-strict-this-context-on-imports Handle the this context correctly according to the spec for namespace objects.
@@ -411,6 +418,8 @@ Options:
411418
--no-module-parser-javascript-auto-require-include Negative 'module-parser-javascript-auto-require-include' option.
412419
--module-parser-javascript-auto-require-js Enable/disable parsing of require.js special syntax like require.config, requirejs.config, require.version and requirejs.onError.
413420
--no-module-parser-javascript-auto-require-js Negative 'module-parser-javascript-auto-require-js' option.
421+
--module-parser-javascript-auto-source-import Enable experimental tc39 proposal https://github.com/tc39/proposal-source-phase-imports. This allows importing modules at source phase.
422+
--no-module-parser-javascript-auto-source-import Negative 'module-parser-javascript-auto-source-import' option.
414423
--module-parser-javascript-auto-strict-export-presence Deprecated in favor of "exportsPresence". Emit errors instead of warnings when imported names don't exist in imported module.
415424
--no-module-parser-javascript-auto-strict-export-presence Negative 'module-parser-javascript-auto-strict-export-presence' option.
416425
--module-parser-javascript-auto-strict-this-context-on-imports Handle the this context correctly according to the spec for namespace objects.
@@ -491,6 +500,8 @@ Options:
491500
--no-module-parser-javascript-dynamic-require-include Negative 'module-parser-javascript-dynamic-require-include' option.
492501
--module-parser-javascript-dynamic-require-js Enable/disable parsing of require.js special syntax like require.config, requirejs.config, require.version and requirejs.onError.
493502
--no-module-parser-javascript-dynamic-require-js Negative 'module-parser-javascript-dynamic-require-js' option.
503+
--module-parser-javascript-dynamic-source-import Enable experimental tc39 proposal https://github.com/tc39/proposal-source-phase-imports. This allows importing modules at source phase.
504+
--no-module-parser-javascript-dynamic-source-import Negative 'module-parser-javascript-dynamic-source-import' option.
494505
--module-parser-javascript-dynamic-strict-export-presence Deprecated in favor of "exportsPresence". Emit errors instead of warnings when imported names don't exist in imported module.
495506
--no-module-parser-javascript-dynamic-strict-export-presence Negative 'module-parser-javascript-dynamic-strict-export-presence' option.
496507
--module-parser-javascript-dynamic-strict-this-context-on-imports Handle the this context correctly according to the spec for namespace objects.
@@ -569,6 +580,8 @@ Options:
569580
--no-module-parser-javascript-esm-require-include Negative 'module-parser-javascript-esm-require-include' option.
570581
--module-parser-javascript-esm-require-js Enable/disable parsing of require.js special syntax like require.config, requirejs.config, require.version and requirejs.onError.
571582
--no-module-parser-javascript-esm-require-js Negative 'module-parser-javascript-esm-require-js' option.
583+
--module-parser-javascript-esm-source-import Enable experimental tc39 proposal https://github.com/tc39/proposal-source-phase-imports. This allows importing modules at source phase.
584+
--no-module-parser-javascript-esm-source-import Negative 'module-parser-javascript-esm-source-import' option.
572585
--module-parser-javascript-esm-strict-export-presence Deprecated in favor of "exportsPresence". Emit errors instead of warnings when imported names don't exist in imported module.
573586
--no-module-parser-javascript-esm-strict-export-presence Negative 'module-parser-javascript-esm-strict-export-presence' option.
574587
--module-parser-javascript-esm-strict-this-context-on-imports Handle the this context correctly according to the spec for namespace objects.
@@ -614,6 +627,8 @@ Options:
614627
--module-rules-loader <value...> A loader request.
615628
--module-rules-mimetype <value...> Match module mimetype when load from Data URI.
616629
--module-rules-mimetype-not <value...> Logical NOT.
630+
--module-rules-phase <value...> Match the import phase of the dependency.
631+
--module-rules-phase-not <value...> Logical NOT.
617632
--module-rules-real-resource <value...> Match the real resource path of the module.
618633
--module-rules-real-resource-not <value...> Logical NOT.
619634
--module-rules-resource <value...> Match the resource path of the module.
@@ -1323,9 +1338,11 @@ Options:
13231338
--stats-warnings-filter <value...> Suppress listing warnings that match the specified filters (they will still be counted). Filters can be Strings, RegExps or Functions.
13241339
--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.
13251340
--stats-warnings-space <value> Space to display warnings (value is in number of lines).
1326-
-t, --target <value...> Environment to build for. Environment to build for. An array of environments to build for all of them when possible.
1341+
-t, --target <value...> Specific environment, runtime, or syntax. Environment to build for. An array of environments to build for all of them when possible.
13271342
--no-target Negative 'target' option.
13281343
--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.
1344+
--validate Enable validation of webpack configuration. Defaults to true in development mode. In production mode, defaults to true unless futureDefaults is enabled, then defaults to false.
1345+
--no-validate Negative 'validate' option.
13291346
-w, --watch Enter watch mode, which rebuilds on file change.
13301347
--no-watch Negative 'watch' option.
13311348
--watch-options-aggregate-timeout <value> Delay the rebuilt after the first change. Value is a time in ms.

SERVE-OPTIONS-v5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Options:
2222
--name <value> Name of the configuration. Used when loading multiple configurations.
2323
-o, --output-path <value> The output directory as **absolute path** (required).
2424
--stats [value] Stats options object or preset name.
25-
-t, --target <value...> Environment to build for. Environment to build for. An array of environments to build for all of them when possible.
25+
-t, --target <value...> Specific environment, runtime, or syntax. Environment to build for. An array of environments to build for all of them when possible.
2626
-w, --watch Enter watch mode, which rebuilds on file change.
2727
--watch-options-stdin Stop watching when stdin stream has ended.
2828
--allowed-hosts <value...> Allows to enumerate the hosts from which access to the dev server are allowed (useful when you are proxying dev server, by default is 'auto').

0 commit comments

Comments
 (0)