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 1a0980e
Browse filesBrowse the repository at this point in the historyBrowse files
fix(config): leave minimize.css to the css assets, and refresh the cli snapshot
`minimize.css: false` selects which asset types are minimized, not whether
CSS is rewritten anywhere: `configCases/optimization/minimize-html-only`
states that a disabled type carries no options to forward, and its inline
css still minifies. `minimize.html.minifyStyles: false` is the switch for
that, which this branch is what adds.
The cli flags are derived from the schema, so the `comments` description
moves `Cli.basictest`'s snapshot with it.
Copy file name to clipboardExpand all lines: test/__snapshots__/Cli.basictest.js.snap
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -11092,7 +11092,7 @@ Object {
11092
11092
"optimization-minimize-css-comments": Object {
11093
11093
"configs": Array [
11094
11094
Object {
11095
-
"description": "Which comments survive. \`\\"some\\"\`, the default, keeps a \`/*!\` banner and a comment annotated \`@license\` or \`@preserve\`; \`true\` (or \`\\"all\\"\`) keeps every comment and \`false\` keeps none; a string is read as a regular expression source, and it, a \`RegExp\` or a \`(comment) => boolean\` predicate is asked about each comment's own text and keeps the ones it accepts — standing in for the default rule rather than beside it, as terser's \`format.comments\` does, so a pattern that names nothing else drops the ones \`\\"some\\"\` would have kept. A \`/*#\` source-map pragma is a link rather than a commentand stays whatever this says. A predicate is handed to the minimizer's worker pool as source, so it must not close over anything.",
11095
+
"description": "Which comments survive. \`\\"some\\"\`, the default, keeps a \`/*!\` banner and a comment annotated \`@license\` or \`@preserve\`; \`true\` (or \`\\"all\\"\`) keeps every comment and \`false\` keeps none; a string is read as a regular expression source, and it, a \`RegExp\` or a \`(comment) => boolean\` predicate is asked about each comment's own text and keeps the ones it accepts — standing in for the default rule rather than beside it, as terser's \`format.comments\` does, so a pattern that names nothing else drops the ones \`\\"some\\"\` would have kept. A \`/*#\` source-map pragma is a link rather than a comment, so \`\\"some\\"\` and \`\\"all\\"\` keep it; \`false\`, a pattern or a predicate decides it like any other. A predicate is handed to the minimizer's worker pool as source, so it must not close over anything.",
11096
11096
"multiple": false,
11097
11097
"path": "optimization.minimize.css.comments",
11098
11098
"type": "enum",
@@ -11102,25 +11102,25 @@ Object {
11102
11102
],
11103
11103
},
11104
11104
Object {
11105
-
"description": "Which comments survive. \`\\"some\\"\`, the default, keeps a \`/*!\` banner and a comment annotated \`@license\` or \`@preserve\`; \`true\` (or \`\\"all\\"\`) keeps every comment and \`false\` keeps none; a string is read as a regular expression source, and it, a \`RegExp\` or a \`(comment) => boolean\` predicate is asked about each comment's own text and keeps the ones it accepts — standing in for the default rule rather than beside it, as terser's \`format.comments\` does, so a pattern that names nothing else drops the ones \`\\"some\\"\` would have kept. A \`/*#\` source-map pragma is a link rather than a commentand stays whatever this says. A predicate is handed to the minimizer's worker pool as source, so it must not close over anything.",
11105
+
"description": "Which comments survive. \`\\"some\\"\`, the default, keeps a \`/*!\` banner and a comment annotated \`@license\` or \`@preserve\`; \`true\` (or \`\\"all\\"\`) keeps every comment and \`false\` keeps none; a string is read as a regular expression source, and it, a \`RegExp\` or a \`(comment) => boolean\` predicate is asked about each comment's own text and keeps the ones it accepts — standing in for the default rule rather than beside it, as terser's \`format.comments\` does, so a pattern that names nothing else drops the ones \`\\"some\\"\` would have kept. A \`/*#\` source-map pragma is a link rather than a comment, so \`\\"some\\"\` and \`\\"all\\"\` keep it; \`false\`, a pattern or a predicate decides it like any other. A predicate is handed to the minimizer's worker pool as source, so it must not close over anything.",
11106
11106
"multiple": false,
11107
11107
"path": "optimization.minimize.css.comments",
11108
11108
"type": "RegExp",
11109
11109
},
11110
11110
Object {
11111
-
"description": "Which comments survive. \`\\"some\\"\`, the default, keeps a \`/*!\` banner and a comment annotated \`@license\` or \`@preserve\`; \`true\` (or \`\\"all\\"\`) keeps every comment and \`false\` keeps none; a string is read as a regular expression source, and it, a \`RegExp\` or a \`(comment) => boolean\` predicate is asked about each comment's own text and keeps the ones it accepts — standing in for the default rule rather than beside it, as terser's \`format.comments\` does, so a pattern that names nothing else drops the ones \`\\"some\\"\` would have kept. A \`/*#\` source-map pragma is a link rather than a commentand stays whatever this says. A predicate is handed to the minimizer's worker pool as source, so it must not close over anything.",
11111
+
"description": "Which comments survive. \`\\"some\\"\`, the default, keeps a \`/*!\` banner and a comment annotated \`@license\` or \`@preserve\`; \`true\` (or \`\\"all\\"\`) keeps every comment and \`false\` keeps none; a string is read as a regular expression source, and it, a \`RegExp\` or a \`(comment) => boolean\` predicate is asked about each comment's own text and keeps the ones it accepts — standing in for the default rule rather than beside it, as terser's \`format.comments\` does, so a pattern that names nothing else drops the ones \`\\"some\\"\` would have kept. A \`/*#\` source-map pragma is a link rather than a comment, so \`\\"some\\"\` and \`\\"all\\"\` keep it; \`false\`, a pattern or a predicate decides it like any other. A predicate is handed to the minimizer's worker pool as source, so it must not close over anything.",
11112
11112
"multiple": false,
11113
11113
"path": "optimization.minimize.css.comments",
11114
11114
"type": "boolean",
11115
11115
},
11116
11116
Object {
11117
-
"description": "Which comments survive. \`\\"some\\"\`, the default, keeps a \`/*!\` banner and a comment annotated \`@license\` or \`@preserve\`; \`true\` (or \`\\"all\\"\`) keeps every comment and \`false\` keeps none; a string is read as a regular expression source, and it, a \`RegExp\` or a \`(comment) => boolean\` predicate is asked about each comment's own text and keeps the ones it accepts — standing in for the default rule rather than beside it, as terser's \`format.comments\` does, so a pattern that names nothing else drops the ones \`\\"some\\"\` would have kept. A \`/*#\` source-map pragma is a link rather than a commentand stays whatever this says. A predicate is handed to the minimizer's worker pool as source, so it must not close over anything.",
11117
+
"description": "Which comments survive. \`\\"some\\"\`, the default, keeps a \`/*!\` banner and a comment annotated \`@license\` or \`@preserve\`; \`true\` (or \`\\"all\\"\`) keeps every comment and \`false\` keeps none; a string is read as a regular expression source, and it, a \`RegExp\` or a \`(comment) => boolean\` predicate is asked about each comment's own text and keeps the ones it accepts — standing in for the default rule rather than beside it, as terser's \`format.comments\` does, so a pattern that names nothing else drops the ones \`\\"some\\"\` would have kept. A \`/*#\` source-map pragma is a link rather than a comment, so \`\\"some\\"\` and \`\\"all\\"\` keep it; \`false\`, a pattern or a predicate decides it like any other. A predicate is handed to the minimizer's worker pool as source, so it must not close over anything.",
11118
11118
"multiple": false,
11119
11119
"path": "optimization.minimize.css.comments",
11120
11120
"type": "string",
11121
11121
},
11122
11122
],
11123
-
"description": "Which comments survive. \`\\"some\\"\`, the default, keeps a \`/*!\` banner and a comment annotated \`@license\` or \`@preserve\`; \`true\` (or \`\\"all\\"\`) keeps every comment and \`false\` keeps none; a string is read as a regular expression source, and it, a \`RegExp\` or a \`(comment) => boolean\` predicate is asked about each comment's own text and keeps the ones it accepts — standing in for the default rule rather than beside it, as terser's \`format.comments\` does, so a pattern that names nothing else drops the ones \`\\"some\\"\` would have kept. A \`/*#\` source-map pragma is a link rather than a commentand stays whatever this says. A predicate is handed to the minimizer's worker pool as source, so it must not close over anything.",
11123
+
"description": "Which comments survive. \`\\"some\\"\`, the default, keeps a \`/*!\` banner and a comment annotated \`@license\` or \`@preserve\`; \`true\` (or \`\\"all\\"\`) keeps every comment and \`false\` keeps none; a string is read as a regular expression source, and it, a \`RegExp\` or a \`(comment) => boolean\` predicate is asked about each comment's own text and keeps the ones it accepts — standing in for the default rule rather than beside it, as terser's \`format.comments\` does, so a pattern that names nothing else drops the ones \`\\"some\\"\` would have kept. A \`/*#\` source-map pragma is a link rather than a comment, so \`\\"some\\"\` and \`\\"all\\"\` keep it; \`false\`, a pattern or a predicate decides it like any other. A predicate is handed to the minimizer's worker pool as source, so it must not close over anything.",
0 commit comments