corrected README.md Events example code

This commit is contained in:
Mike Evans 2016-04-12 09:55:22 +01:00
parent f89eb945ec
commit 4dc976e396
1 changed files with 2 additions and 1 deletions

View File

@ -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.