From 0585a364b2868a456713593540f738fe266d0028 Mon Sep 17 00:00:00 2001 From: Alexander Akait <4567934+alexander-akait@users.noreply.github.com> Date: Wed, 23 Oct 2024 03:56:16 +0300 Subject: [PATCH] fix: hooks file for old plugins (#1867) --- .husky/commit-msg | 0 .husky/pre-commit | 0 lib/hooks.js | 7 +++++++ 3 files changed, 7 insertions(+) mode change 100644 => 100755 .husky/commit-msg mode change 100644 => 100755 .husky/pre-commit create mode 100644 lib/hooks.js diff --git a/.husky/commit-msg b/.husky/commit-msg old mode 100644 new mode 100755 diff --git a/.husky/pre-commit b/.husky/pre-commit old mode 100644 new mode 100755 diff --git a/lib/hooks.js b/lib/hooks.js new file mode 100644 index 00000000..21e5716a --- /dev/null +++ b/lib/hooks.js @@ -0,0 +1,7 @@ +// TODO remove in the next major release +const plugin = require("../index"); + +module.exports = { + getHtmlWebpackPluginHooks: (compilation) => + plugin.getCompilationHooks(compilation), +};