From d30635e7b49b7ac11ba3b6c5d49940560317e426 Mon Sep 17 00:00:00 2001 From: Guillaume Hertault Date: Sun, 17 Feb 2019 20:28:59 +0100 Subject: [PATCH] Edit InterpolateHtmlPlugin hook (#6448) --- packages/react-dev-utils/InterpolateHtmlPlugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-dev-utils/InterpolateHtmlPlugin.js b/packages/react-dev-utils/InterpolateHtmlPlugin.js index 30438f0b8e0..447e0ee3ea6 100644 --- a/packages/react-dev-utils/InterpolateHtmlPlugin.js +++ b/packages/react-dev-utils/InterpolateHtmlPlugin.js @@ -26,7 +26,7 @@ class InterpolateHtmlPlugin { compiler.hooks.compilation.tap('InterpolateHtmlPlugin', compilation => { this.htmlWebpackPlugin .getHooks(compilation) - .beforeEmit.tap('InterpolateHtmlPlugin', data => { + .afterTemplateExecution.tap('InterpolateHtmlPlugin', data => { // Run HTML through a series of user-specified string replacements. Object.keys(this.replacements).forEach(key => { const value = this.replacements[key];