fix(template): prevent undefined error in template loader (#754)
This commit is contained in:
parent
7ca7cb7702
commit
0cf580c628
2
index.js
2
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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue