From 0cf580c628a495d77b85e35ed1b9d244e2ec5ae0 Mon Sep 17 00:00:00 2001 From: Thomas Sileghem Date: Mon, 31 Jul 2017 15:45:25 +0100 Subject: [PATCH] fix(template): prevent undefined error in template loader (#754) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 30c04ca..f98abce 100644 --- a/index.js +++ b/index.js @@ -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,