Skip to content

Commit 0831ce1

Browse files
committed
Merge branch 'master' of github.com:Genuitec/angular-cli
2 parents bcc74e1 + 8490deb commit 0831ce1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

lib/broccoli/angular-broccoli-less.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,15 @@ class LESSPlugin extends Plugin {
2525
}
2626

2727
build() {
28-
return Promise.all(this.listEntries().map(e => {
28+
return Promise.all(this.listEntries().filter(e => {
29+
if (this.options && this.options['compile-targets']) {
30+
if (this.options['compile-targets'].indexOf(e.relativePath) > -1) {
31+
return true;
32+
}
33+
return false;
34+
}
35+
return true;
36+
}).map(e => {
2937
let fileName = path.resolve(e.basePath, e.relativePath);
3038
return this.compile(fileName, this.inputPaths[0], this.outputPath);
3139
}));

0 commit comments

Comments
 (0)