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

Function wrapBlock

lib/compress.js:102–121  ·  view source on GitHub ↗
(block)

Source from the content-addressed store, hash-verified

100}
101
102function wrapBlock(block) {
103 return new List().appendData({
104 type: 'Rule',
105 loc: null,
106 prelude: {
107 type: 'SelectorList',
108 loc: null,
109 children: new List().appendData({
110 type: 'Selector',
111 loc: null,
112 children: new List().appendData({
113 type: 'TypeSelector',
114 loc: null,
115 name: 'x'
116 })
117 })
118 },
119 block
120 });
121}
122
123export default function compress(ast, options) {
124 ast = ast || { type: 'StyleSheet', loc: null, children: new List() };

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…