Update index.js

This commit is contained in:
Kenny Tran 2015-05-19 08:03:14 -07:00
parent 025d77009a
commit 64752a6b5e
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);
}