Skip to content

Commit 0585a36

Browse files
fix: hooks file for old plugins (#1867)
1 parent 11a248e commit 0585a36

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.husky/commit-msg

100644100755
File mode changed.

.husky/pre-commit

100644100755
File mode changed.

lib/hooks.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// TODO remove in the next major release
2+
const plugin = require("../index");
3+
4+
module.exports = {
5+
getHtmlWebpackPluginHooks: (compilation) =>
6+
plugin.getCompilationHooks(compilation),
7+
};

0 commit comments

Comments
 (0)