From 9463e2b6880502b1685f1ed458320f15c995a89c Mon Sep 17 00:00:00 2001 From: alexander-akait <4567934+alexander-akait@users.noreply.github.com> Date: Sun, 1 Nov 2026 00:35:20 +0000 Subject: [PATCH] docs: update --- OPTIONS.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OPTIONS.md b/OPTIONS.md index bdeed49170e..f89c8cf7dba 100644 --- a/OPTIONS.md +++ b/OPTIONS.md @@ -1151,7 +1151,7 @@ Options --no-optimization-minimize-css-custom-media Negative 'optimization-minimize-css-custom-media' option. --optimization-minimize-css-custom-selectors Resolve the `@custom-selector` at-rule: write the selector list a name stands for as `:is(…)` wherever a selector asks for it, and drop the rule that named it. `@custom-selector :--heading h1, h2` with `:--heading` becomes `:is(h1, h2)`. Off by default, for the reason `customMedia` is: `module.parser.css.customSelectors` already resolves it in every stylesheet webpack parses. Rules are read as `customMedia` reads them, and a name is written out only where the target reads `:is()`. --no-optimization-minimize-css-custom-selectors Negative 'optimization-minimize-css-custom-selectors' option. - --optimization-minimize-css-drop-overridden-declarations Drop a declaration a later one in the same block overrides even where nothing states that the target can read the later value. Off by default. With a `browserslist` target this is already done wherever every browser it names is known to read the later value, so the option only widens the case where no target is selected and there are no engines to name — which is what csso and cssnano do unconditionally. What it gives up is the fallback pair: `color:#c65d06;color:lab(50% 100 -100)` loses the hex, so an engine that cannot read `lab()` is left with nothing. A selection naming a browser the compat tables do not cover is still answered for the whole of it rather than by this option, since naming a browser states a target the option does not override. + --optimization-minimize-css-drop-overridden-declarations Drop a declaration a later one in the same block overrides even where no target is selected, assuming the engines shipping today: wherever Chromium, Gecko and WebKit each read the later value. Off by default. With a `browserslist` target this is already done wherever every browser it names is known to read the later value, so the option only widens the case where no target is selected and there are no engines to name — which is what csso and cssnano do unconditionally. What it gives up is the fallback pair: `color:#c65d06;color:lab(50% 100 -100)` loses the hex, so an engine that cannot read `lab()` is left with nothing. A selection naming a browser the compat tables do not cover is still answered for the whole of it rather than by this option, since naming a browser states a target the option does not override. --no-optimization-minimize-css-drop-overridden-declarations Negative 'optimization-minimize-css-drop-overridden-declarations' option. --optimization-minimize-css-extract-comments [value] Which comments a minimized asset gives up to its `[file].LICENSE.txt`. --no-optimization-minimize-css-extract-comments Negative 'optimization-minimize-css-extract-comments' option. @@ -1220,7 +1220,7 @@ Options --no-optimization-minimize-html-normalize-url-attributes Negative 'optimization-minimize-html-normalize-url-attributes' option. --optimization-minimize-html-remove-empty-attributes Drop an attribute whose empty or all-whitespace value leaves it in the state its absence gives: the globals `class`, `id`, `style`, `dir`, `accesskey`, `itemprop`, `itemref`, `itemtype` and `part`, and every attribute reflecting a token list on the elements the spec defines it for — `rel` on ``, ``, `
` and ``, `ping` on `` and ``, `headers` on `` and ``, `blocking` on ``, `