MCPcopy
hub / github.com/postcss/postcss / process

Method process

lib/processor.js:44–55  ·  view source on GitHub ↗
(css, opts = {})

Source from the content-addressed store, hash-verified

42 }
43
44 process(css, opts = {}) {
45 if (
46 !this.plugins.length &&
47 !opts.parser &&
48 !opts.stringifier &&
49 !opts.syntax
50 ) {
51 return new NoWorkResult(this, css, opts)
52 } else {
53 return new LazyResult(this, css, opts)
54 }
55 }
56
57 use(plugin) {
58 this.plugins = this.plugins.concat(this.normalize([plugin]))

Callers 13

processByFunction · 0.95
postcss.jsFile · 0.80
processor.test.tsFile · 0.80
map.test.tsFile · 0.80
postcss.test.tsFile · 0.80
visitor.test.tsFile · 0.80
result.test.tsFile · 0.80
node.test.tsFile · 0.80
fromJSON.test.tsFile · 0.80
types.tsFile · 0.80

Calls

no outgoing calls

Tested by 1

processByFunction · 0.76