Skip to content

Commit 9a8446b

Browse files
committed
added test for additional pass
1 parent f3197f5 commit 9a8446b

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
it("should compile", function(done) {
2+
done();
3+
});
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
var testPlugin = function() {
2+
var counter = 1;
3+
this.plugin("compilation", function(compilation) {
4+
var nr = counter++;
5+
compilation.plugin("need-additional-pass", function() {
6+
if(nr < 5)
7+
return true;
8+
});
9+
});
10+
};
11+
12+
module.exports = {
13+
plugins: [
14+
testPlugin
15+
]
16+
};

0 commit comments

Comments
 (0)