Skip to content

Commit 42140e5

Browse files
GuiHashiansu
authored andcommitted
Edit InterpolateHtmlPlugin hook (#6448) (#6449)
1 parent 9788522 commit 42140e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-dev-utils/InterpolateHtmlPlugin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class InterpolateHtmlPlugin {
2626
compiler.hooks.compilation.tap('InterpolateHtmlPlugin', compilation => {
2727
this.htmlWebpackPlugin
2828
.getHooks(compilation)
29-
.beforeEmit.tap('InterpolateHtmlPlugin', data => {
29+
.afterTemplateExecution.tap('InterpolateHtmlPlugin', data => {
3030
// Run HTML through a series of user-specified string replacements.
3131
Object.keys(this.replacements).forEach(key => {
3232
const value = this.replacements[key];

0 commit comments

Comments
 (0)