Skip to content

Commit

Permalink
fix: Remove compilation.getStats() call for performance reasons
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Template variable webpack was removed
  • Loading branch information
jantimon committed Jun 3, 2018
1 parent 22fb03f commit 7005a55
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion index.js
Expand Up @@ -719,7 +719,6 @@ function trainCaseToCamelCase (word) {
function templateParametersGenerator (compilation, assets, options) {
return {
compilation: compilation,
webpack: compilation.getStats().toJson(),
webpackConfig: compilation.options,
htmlWebpackPlugin: {
files: assets,
Expand Down
2 changes: 1 addition & 1 deletion spec/BasicSpec.js
Expand Up @@ -1590,7 +1590,7 @@ describe('HtmlWebpackPlugin', function () {
inject: false
})
]
}, ['templateParams keys: "compilation,webpack,webpackConfig,htmlWebpackPlugin"'], null, done);
}, ['templateParams keys: "compilation,webpackConfig,htmlWebpackPlugin"'], null, done);
});

it('should allow to disable template parameters', function (done) {
Expand Down

0 comments on commit 7005a55

Please sign in to comment.