From 4dc976e396e91367693a9c9d6c020f8f386aa84f Mon Sep 17 00:00:00 2001 From: Mike Evans Date: Tue, 12 Apr 2016 09:55:22 +0100 Subject: [PATCH] corrected README.md Events example code --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8e39d6c..e321145 100644 --- a/README.md +++ b/README.md @@ -255,6 +255,7 @@ Usage: ```javascript compilation.plugin('html-webpack-plugin-before-html-processing', function(htmlPluginData, callback) { htmlPluginData.html += 'The magic footer'; - callback(); + callback(null, htmlPluginData); }); ``` +Note that the callback must be passed the htmlPluginData in order to pass this onto any other plugins listening on the same 'html-webpack-plugin-before-html-processing' event.