diff --git a/lib/broccoli/angular-broccoli-sass.js b/lib/broccoli/angular-broccoli-sass.js index 9d0f5e35b82e..2fefe20440bf 100644 --- a/lib/broccoli/angular-broccoli-sass.js +++ b/lib/broccoli/angular-broccoli-sass.js @@ -25,12 +25,22 @@ class SASSPlugin extends Plugin { } build() { + let sassFileEndings = this.options['sass-files'] || ['.sass', '.scss']; + this.listFiles().forEach(fileName => { // Normalize is necessary for changing `\`s into `/`s on windows. - this.compile(path.normalize(fileName), - path.normalize(this.inputPaths[0]), - path.normalize(this.outputPath)); + let found = false; + sassFileEndings.forEach(ending => { + found = found || fileName.endsWith(ending); + }); + + if (found) { + this.compile(path.normalize(fileName), + path.normalize(this.inputPaths[0]), + path.normalize(this.outputPath)); + } }); + } compile(fileName, inputPath, outputPath) {