Merge pull request #42 from kennyt/patch-1

Add s to return in comment
This commit is contained in:
Jan Nicklas 2015-05-19 21:47:20 +02:00
commit 975753a97b
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ HtmlWebpackPlugin.prototype.getTemplateContent = function(compilation, templateP
return Promise.fromNode(function(callback) {
// allow to specify a sync or an async function to generate the template content
var result = self.options.templateContent(templateParams, compilation, callback);
// if it return a result expect it to be sync
// if it returns a result expect it to be sync
if (result !== undefined) {
callback(null, result);
}