Skip to content

Commit a6a397a

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 2fac8d8 + 6e0eb28 commit a6a397a

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

lib/broccoli/angular-broccoli-sass.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,22 @@ class SASSPlugin extends Plugin {
2525
}
2626

2727
build() {
28+
let sassFileEndings = this.options['sass-files'] || ['.sass', '.scss'];
29+
2830
this.listFiles().forEach(fileName => {
2931
// Normalize is necessary for changing `\`s into `/`s on windows.
30-
this.compile(path.normalize(fileName),
31-
path.normalize(this.inputPaths[0]),
32-
path.normalize(this.outputPath));
32+
let found = false;
33+
sassFileEndings.forEach(ending => {
34+
found = found || fileName.endsWith(ending);
35+
});
36+
37+
if (found) {
38+
this.compile(path.normalize(fileName),
39+
path.normalize(this.inputPaths[0]),
40+
path.normalize(this.outputPath));
41+
}
3342
});
43+
3444
}
3545

3646
compile(fileName, inputPath, outputPath) {

0 commit comments

Comments
 (0)