MCPcopy Create free account
hub / github.com/ember-cli/ember-cli / compileStyles

Function compileStyles

lib/models/addon.js:930–945  ·  view source on GitHub ↗

Runs the styles tree through preprocessors. @private @method compileStyles @param {Tree} addonStylesTree Styles file tree @return {Tree} Compiled styles tree

(addonStylesTree)

Source from the content-addressed store, hash-verified

928 @return {Tree} Compiled styles tree
929 */
930 compileStyles(addonStylesTree) {
931 if (addonStylesTree) {
932 let preprocessedStylesTree = this._addonPreprocessTree('css', addonStylesTree);
933
934 let processedStylesTree = preprocessCss(preprocessedStylesTree, '/', '/', {
935 outputPaths: { addon: `${this.name}.css` },
936 registry: this.registry,
937 treeType: 'addon-styles',
938 });
939 processedStylesTree = new Funnel(processedStylesTree, {
940 destDir: `${this.name}/__COMPILED_STYLES__`,
941 });
942
943 return this._addonPostprocessTree('css', processedStylesTree);
944 }
945 },
946
947 /**
948 Looks in the addon/ and addon/templates trees to determine if template files

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…