Skip to content

Commit

Permalink
fix(template): prevent undefined error in template loader (#754)
Browse files Browse the repository at this point in the history
  • Loading branch information
mastilver authored and jantimon committed Jul 31, 2017
1 parent 7ca7cb7 commit 0cf580c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -252,7 +252,7 @@ HtmlWebpackPlugin.prototype.executeTemplate = function (templateFunction, chunks
.then(function () {
var templateParams = {
compilation: compilation,
webpack: compilation.getStats(),
webpack: compilation.getStats().toJson(),
webpackConfig: compilation.options,
htmlWebpackPlugin: {
files: assets,
Expand Down

0 comments on commit 0cf580c

Please sign in to comment.