mirror of https://github.com/webpack/webpack.git
Add finish module test case
This commit is contained in:
parent
ea172ec5fd
commit
fdc3bc6b28
|
|
@ -0,0 +1,3 @@
|
|||
it("should compile", function(done) {
|
||||
done();
|
||||
});
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
var testPlugin = function() {
|
||||
this.hooks.compilation.tap("TestPlugin", compilation => {
|
||||
compilation.hooks.finishModules.tapAsync("TestPlugin", function(
|
||||
_modules,
|
||||
callback
|
||||
) {
|
||||
callback();
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
plugins: [testPlugin]
|
||||
};
|
||||
Loading…
Reference in New Issue