MCPcopy
hub / github.com/postcss/postcss / sourcePath

Method sourcePath

lib/map-generator.js:327–335  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

325 }
326
327 sourcePath(node) {
328 if (this.mapOpts.from) {
329 return this.toUrl(this.mapOpts.from)
330 } else if (this.usesFileUrls) {
331 return this.toFileUrl(node.source.input.from)
332 } else {
333 return this.toUrl(this.path(node.source.input.from))
334 }
335 }
336
337 toBase64(str) {
338 if (Buffer) {

Callers 1

generateStringMethod · 0.95

Calls 3

toUrlMethod · 0.95
toFileUrlMethod · 0.95
pathMethod · 0.95

Tested by

no test coverage detected