Skip to content

Commit

Permalink
Edit InterpolateHtmlPlugin hook (#6448) (#6449)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuiHash authored and iansu committed Oct 23, 2019
1 parent 9788522 commit 42140e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-dev-utils/InterpolateHtmlPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 42140e5

Please sign in to comment.