From 4650e66b1433b02fc3ea423a7ce9586930414dbf Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Sat, 22 Jan 2022 19:04:02 +0530 Subject: [PATCH] docs: update webpack options (#3101) --- OPTIONS.md | 12 ++++++++++-- package.json | 2 +- yarn.lock | 18 +++++++++--------- 3 files changed, 20 insertions(+), 12 deletions(-) diff --git a/OPTIONS.md b/OPTIONS.md index d300402f9d2..0de18f3e63c 100644 --- a/OPTIONS.md +++ b/OPTIONS.md @@ -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. @@ -138,6 +142,7 @@ 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 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 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-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. @@ -145,6 +150,7 @@ Options: --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 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 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-no-parse 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. @@ -551,12 +557,14 @@ Options: --no-output-compare-before-emit Negative 'output-compare-before-emit' option. --output-cross-origin-loading This option enables cross-origin loading of chunks. --no-output-cross-origin-loading Negative 'output-cross-origin-loading' option. + --output-css-chunk-filename 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 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 Similar to `output.devtoolModuleFilenameTemplate`, but used in the case of duplicate module identifiers. --output-devtool-module-filename-template Filename template string of function for the sources array in a generated SourceMap. --output-devtool-namespace 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 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 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 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 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. @@ -610,7 +618,7 @@ Options: --output-library-name-commonjs Name of the exposed commonjs export in the UMD. --output-library-name-root 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 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 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. diff --git a/package.json b/package.json index 0783c25a063..bba35ce7059 100644 --- a/package.json +++ b/package.json @@ -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" } diff --git a/yarn.lock b/yarn.lock index c21d294607d..614a1e28e65 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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" @@ -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"