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
{{ message }}
Repository navigation
Commit 339d931
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: lib/css/cssMinify.js
+3-8Lines changed: 3 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@
22
22
* re-resolves in the worker — via the installed package, or the dev self-link.
23
23
* @param {{ [file: string]: string }} input a single `{ filename: code }` entry
24
24
* @param {object=} sourceMap the asset's input source map — the plugin chains it onto the map returned here, so it isn't read directly
25
-
* @param {object=} minimizerOptions minimizer options — `environment` carries the target's CSS abilities (see `output.environment`), so a spelling the target cannot read is not reached for; the rest is `optimization.minimize.css` (e.g. `convertLengthUnits`)
25
+
* @param {{ environment?: CssEnvironment, convertLengthUnits?: boolean }=} minimizerOptions minimizer options — `environment` carries the target's CSS abilities (see `output.environment`), so a spelling the target cannot read is not reached for; the rest is `optimization.minimize.css` (e.g. `convertLengthUnits`)
26
26
* @returns {{ code: string, map: SourceMap }} the minified CSS and its input->output source map
Copy file name to clipboardExpand all lines: lib/html/htmlMinify.js
+4-8Lines changed: 4 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@
23
23
* re-resolves in the worker — via the installed package, or the dev self-link.
24
24
* @param {{ [file: string]: string }} input a single `{ filename: code }` entry
25
25
* @param {(RawSourceMap | undefined)=} sourceMap input source map (unused: safe serialize keeps positions token-coarse, so no map is produced yet)
26
-
* @param {object=} minimizerOptions minimizer options — `environment` carries the target's CSS abilities and `convertLengthUnits` the CSS minimizer's option of that name, both for the inline CSS this minifies
26
+
* @param {{ environment?: CssEnvironment, convertLengthUnits?: boolean }=} minimizerOptions minimizer options — `environment` carries the target's CSS abilities and `convertLengthUnits` the CSS minimizer's option of that name, both for the inline CSS this minifies
0 commit comments