MCPcopy
hub / github.com/less/less.js / removeBasepath

Method removeBasepath

packages/less/lib/less/source-map-output.js:31–40  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

29 }
30
31 removeBasepath(path) {
32 if (this._sourceMapBasepath && path.indexOf(this._sourceMapBasepath) === 0) {
33 path = path.substring(this._sourceMapBasepath.length);
34 if (path.charAt(0) === '\\' || path.charAt(0) === '/') {
35 path = path.substring(1);
36 }
37 }
38
39 return path;
40 }
41
42 normalizeFilename(filename) {
43 filename = filename.replace(/\\/g, '/');

Callers 2

normalizeFilenameMethod · 0.95
toCSSMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected