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

Function pluginFactory

test/plugins.js:23–27  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

21 it('calls beforeCompress when it is an array', () => {
22 let called = [false, false];
23 const pluginFactory = (index) => (ast, options) => {
24 assert(ast);
25 assert(options);
26 called[index] = true;
27 };
28 const ast = minify(css, {
29 beforeCompress: [pluginFactory(0), pluginFactory(1)]
30 });

Callers 1

plugins.jsFile · 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…