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

Method getCSSAppendage

packages/less/lib/less/source-map-builder.js:36–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 }
35
36 getCSSAppendage() {
37
38 let sourceMapURL = this.sourceMapURL;
39 if (this.options.sourceMapFileInline) {
40 if (this.sourceMap === undefined) {
41 return '';
42 }
43 sourceMapURL = `data:application/json;base64,${environment.encodeBase64(this.sourceMap)}`;
44 }
45
46 if (this.options.disableSourcemapAnnotation) {
47 return '';
48 }
49
50 if (sourceMapURL) {
51 return `/*# sourceMappingURL=${sourceMapURL} */`;
52 }
53 return '';
54 }
55
56 getExternalSourceMap() {
57 return this.sourceMap;

Callers 1

toCSSMethod · 0.95

Calls 1

encodeBase64Method · 0.80

Tested by

no test coverage detected