Skip to content

Commit

Permalink
docs: update webpack options (#3101)
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Jan 22, 2022
1 parent a59de98 commit 4650e66
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
12 changes: 10 additions & 2 deletions OPTIONS.md
Expand Up @@ -70,6 +70,10 @@ Options:
--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 Enable css support.
--no-experiments-css Negative 'experiments-css' option.
--experiments-css-exports-only Avoid generating and loading a stylesheet and only embed exports from css into output javascript files.
--no-experiments-css-exports-only Negative 'experiments-css-exports-only' option.
--experiments-future-defaults Apply defaults of next major version.
--no-experiments-future-defaults Negative 'experiments-future-defaults' option.
--experiments-layers Enable module layers.
Expand Down Expand Up @@ -138,13 +142,15 @@ Options:
--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 <value> Specifies the filename template 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.
--module-generator-asset-output-path <value> 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 <value> The 'publicPath' specifies the public URL address of the output files when referenced in a browser.
--module-generator-asset-inline-data-url-encoding <value> 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 <value> Asset mimetype (getting from file extension by default).
--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 <value> Specifies the filename template 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.
--module-generator-asset-resource-output-path <value> 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 <value> The 'publicPath' specifies the public URL address of the output files when referenced in a browser.
--module-no-parse <value...> A regular expression, when matched the module is not parsed. An absolute path, when the module starts with this path it is not parsed.
--module-no-parse-reset Clear all items provided in 'module.noParse' configuration. Don't parse files matching. It's matched against the full resolved request.
Expand Down Expand Up @@ -551,12 +557,14 @@ Options:
--no-output-compare-before-emit Negative 'output-compare-before-emit' option.
--output-cross-origin-loading <value> This option enables cross-origin loading of chunks.
--no-output-cross-origin-loading Negative 'output-cross-origin-loading' option.
--output-css-chunk-filename <value> Specifies the filename template 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.
--output-css-filename <value> Specifies the filename template 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.
--output-devtool-fallback-module-filename-template <value> Similar to `output.devtoolModuleFilenameTemplate`, but used in the case of duplicate module identifiers.
--output-devtool-module-filename-template <value> Filename template string of function for the sources array in a generated SourceMap.
--output-devtool-namespace <value> 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-enabled-chunk-loading-types <value...> 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).
--output-enabled-chunk-loading-types-reset Clear all items provided in 'output.enabledChunkLoadingTypes' configuration. List of chunk loading types enabled for use by entry points.
--output-enabled-library-types <value...> Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).
--output-enabled-library-types <value...> Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'commonjs-static', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).
--output-enabled-library-types-reset Clear all items provided in 'output.enabledLibraryTypes' configuration. List of library types enabled for use by entry points.
--output-enabled-wasm-loading-types <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).
--output-enabled-wasm-loading-types-reset Clear all items provided in 'output.enabledWasmLoadingTypes' configuration. List of wasm loading types enabled for use by entry points.
Expand Down Expand Up @@ -610,7 +618,7 @@ Options:
--output-library-name-commonjs <value> Name of the exposed commonjs export in the UMD.
--output-library-name-root <value...> Part of the name of the property exposed globally by a UMD library.
--output-library-name-root-reset Clear all items provided in 'output.library.name.root' configuration. Name of the property exposed globally by a UMD library.
--output-library-type <value> Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).
--output-library-type <value> Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'commonjs-static', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).
--output-library-umd-named-define If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.
--no-output-library-umd-named-define Negative 'output-library-umd-named-define' option.
--output-module Output javascript files as module source type.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -82,7 +82,7 @@
"ts-jest": "^27.0.2",
"ts-node": "^9.1.0",
"typescript": "^4.1.3",
"webpack": "^5.56.0",
"webpack": "^5.67.0",
"webpack-bundle-analyzer": "^4.3.0",
"webpack-dev-server": "^4.7.2"
}
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Expand Up @@ -11075,15 +11075,15 @@ webpack-merge@^5.7.3:
clone-deep "^4.0.1"
wildcard "^2.0.0"

webpack-sources@^3.2.2:
version "3.2.2"
resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.2.tgz#d88e3741833efec57c4c789b6010db9977545260"
integrity sha512-cp5qdmHnu5T8wRg2G3vZZHoJPN14aqQ89SyQ11NpGH5zEMDCclt49rzo+MaRazk7/UeILhAI+/sEtcM+7Fr0nw==
webpack-sources@^3.2.3:
version "3.2.3"
resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.3.tgz#2d4daab8451fd4b240cc27055ff6a0c2ccea0cde"
integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==

webpack@^5.56.0:
version "5.66.0"
resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.66.0.tgz#789bf36287f407fc92b3e2d6f978ddff1bfc2dbb"
integrity sha512-NJNtGT7IKpGzdW7Iwpn/09OXz9inIkeIQ/ibY6B+MdV1x6+uReqz/5z1L89ezWnpPDWpXF0TY5PCYKQdWVn8Vg==
webpack@^5.67.0:
version "5.67.0"
resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.67.0.tgz#cb43ca2aad5f7cc81c4cd36b626e6b819805dbfd"
integrity sha512-LjFbfMh89xBDpUMgA1W9Ur6Rn/gnr2Cq1jjHFPo4v6a79/ypznSYbAyPgGhwsxBtMIaEmDD1oJoA7BEYw/Fbrw==
dependencies:
"@types/eslint-scope" "^3.7.0"
"@types/estree" "^0.0.50"
Expand All @@ -11108,7 +11108,7 @@ webpack@^5.56.0:
tapable "^2.1.1"
terser-webpack-plugin "^5.1.3"
watchpack "^2.3.1"
webpack-sources "^3.2.2"
webpack-sources "^3.2.3"

websocket-driver@>=0.5.1, websocket-driver@^0.7.4:
version "0.7.4"
Expand Down

0 comments on commit 4650e66

Please sign in to comment.