MCPcopy
hub / github.com/css/csso / getCommentsOption

Function getCommentsOption

lib/compress.js:82–92  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

80}
81
82function getCommentsOption(options) {
83 let comments = 'comments' in options ? options.comments : 'exclamation';
84
85 if (typeof comments === 'boolean') {
86 comments = comments ? 'exclamation' : false;
87 } else if (comments !== 'exclamation' && comments !== 'first-exclamation') {
88 comments = false;
89 }
90
91 return comments;
92}
93
94function getRestructureOption(options) {
95 if ('restructure' in options) {

Callers 1

compressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…