fix(template): prevent undefined error in template loader (#754)

This commit is contained in:
Thomas Sileghem 2017-07-31 15:45:25 +01:00 committed by Jan Nicklas
parent 7ca7cb7702
commit 0cf580c628
1 changed files with 1 additions and 1 deletions

View File

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