Merge pull request #289 from numical/master

Corrected README.md Events example code
This commit is contained in:
Jan Nicklas 2016-04-13 07:16:26 +02:00
commit 4fc5328411
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.