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

Method toCSS

packages/less/lib/less/source-map-builder.js:7–34  ·  view source on GitHub ↗
(rootNode, options, imports)

Source from the content-addressed store, hash-verified

5 }
6
7 toCSS(rootNode, options, imports) {
8 const sourceMapOutput = new SourceMapOutput(
9 {
10 contentsIgnoredCharsMap: imports.contentsIgnoredChars,
11 rootNode,
12 contentsMap: imports.contents,
13 sourceMapFilename: this.options.sourceMapFilename,
14 sourceMapURL: this.options.sourceMapURL,
15 outputFilename: this.options.sourceMapOutputFilename,
16 sourceMapBasepath: this.options.sourceMapBasepath,
17 sourceMapRootpath: this.options.sourceMapRootpath,
18 outputSourceFiles: this.options.outputSourceFiles,
19 sourceMapGenerator: this.options.sourceMapGenerator,
20 sourceMapFileInline: this.options.sourceMapFileInline,
21 disableSourcemapAnnotation: this.options.disableSourcemapAnnotation
22 });
23
24 const css = sourceMapOutput.toCSS(options);
25 this.sourceMap = sourceMapOutput.sourceMap;
26 this.sourceMapURL = sourceMapOutput.sourceMapURL;
27 if (this.options.sourceMapInputFilename) {
28 this.sourceMapInputFilename = sourceMapOutput.normalizeFilename(this.options.sourceMapInputFilename);
29 }
30 if (this.options.sourceMapBasepath !== undefined && this.sourceMapURL !== undefined) {
31 this.sourceMapURL = sourceMapOutput.removeBasepath(this.sourceMapURL);
32 }
33 return css + this.getCSSAppendage();
34 }
35
36 getCSSAppendage() {
37

Callers

nothing calls this directly

Calls 4

toCSSMethod · 0.95
normalizeFilenameMethod · 0.95
removeBasepathMethod · 0.95
getCSSAppendageMethod · 0.95

Tested by

no test coverage detected