Skip to content

Commit 162853e

Browse files
authored
Fix html-webpack-plugin warning
Not returning the result in the callback is deprecated in html-webpack-plugin.
1 parent d13b498 commit 162853e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ HtmlWebpackWrapHtmlPlugin.prototype.apply = function(compiler) {
1616
htmlPluginData.html += "\n" + options.after;
1717
}
1818

19-
callback();
19+
callback(null, htmlPluginData);
2020
});
2121
});
2222
};
23-
module.exports = HtmlWebpackWrapHtmlPlugin;
23+
module.exports = HtmlWebpackWrapHtmlPlugin;

0 commit comments

Comments
 (0)