We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bcc74e1 + 8490deb commit 0831ce1Copy full SHA for 0831ce1
lib/broccoli/angular-broccoli-less.js
@@ -25,7 +25,15 @@ class LESSPlugin extends Plugin {
25
}
26
27
build() {
28
- return Promise.all(this.listEntries().map(e => {
+ 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
36
+ }).map(e => {
37
let fileName = path.resolve(e.basePath, e.relativePath);
38
return this.compile(fileName, this.inputPaths[0], this.outputPath);
39
}));
0 commit comments