Runs the styles tree through preprocessors. @private @method compileStyles @param {Tree} addonStylesTree Styles file tree @return {Tree} Compiled styles tree
(addonStylesTree)
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…