html-webpack-plugin
Advanced tools
Comparing version 2.24.0 to 2.24.1
Change History | ||
============== | ||
v2.24.1 | ||
--- | ||
* Hide event deprecated warning of 'applyPluginsAsyncWaterfall' for html-webpack-plugin-after-emit and improve the warning message. | ||
v2.24.0 | ||
@@ -5,0 +9,0 @@ --- |
16
index.js
@@ -120,3 +120,3 @@ 'use strict'; | ||
.then(function (compilationResult) { | ||
return applyPluginsAsyncWaterfall('html-webpack-plugin-before-html-generation', { | ||
return applyPluginsAsyncWaterfall('html-webpack-plugin-before-html-generation', false, { | ||
assets: assets, | ||
@@ -141,3 +141,3 @@ outputName: self.childCompilationOutputName, | ||
var pluginArgs = {html: html, assets: assets, plugin: self, outputName: self.childCompilationOutputName}; | ||
return applyPluginsAsyncWaterfall('html-webpack-plugin-before-html-processing', pluginArgs); | ||
return applyPluginsAsyncWaterfall('html-webpack-plugin-before-html-processing', true, pluginArgs); | ||
}) | ||
@@ -152,3 +152,3 @@ .then(function (result) { | ||
// Allow plugins to change the assetTag definitions | ||
return applyPluginsAsyncWaterfall('html-webpack-plugin-alter-asset-tags', pluginArgs) | ||
return applyPluginsAsyncWaterfall('html-webpack-plugin-alter-asset-tags', true, pluginArgs) | ||
.then(function (result) { | ||
@@ -167,3 +167,3 @@ // Add the stylesheets, scripts and so on to the resulting html | ||
var pluginArgs = {html: html, assets: assets, plugin: self, outputName: self.childCompilationOutputName}; | ||
return applyPluginsAsyncWaterfall('html-webpack-plugin-after-html-processing', pluginArgs) | ||
return applyPluginsAsyncWaterfall('html-webpack-plugin-after-html-processing', true, pluginArgs) | ||
.then(function (result) { | ||
@@ -194,3 +194,3 @@ return result.html; | ||
// Let other plugins know that we are done: | ||
return applyPluginsAsyncWaterfall('html-webpack-plugin-after-emit', { | ||
return applyPluginsAsyncWaterfall('html-webpack-plugin-after-emit', false, { | ||
html: compilation.assets[self.childCompilationOutputName], | ||
@@ -631,7 +631,7 @@ outputName: self.childCompilationOutputName, | ||
var promisedApplyPluginsAsyncWaterfall = Promise.promisify(compilation.applyPluginsAsyncWaterfall, {context: compilation}); | ||
return function (eventName, pluginArgs) { | ||
return function (eventName, requiresResult, pluginArgs) { | ||
return promisedApplyPluginsAsyncWaterfall(eventName, pluginArgs) | ||
.then(function (result) { | ||
if (!result) { | ||
compilation.warnings.push(new Error('Using html-webpack-plugin-after-html-processing without returning a result is deprecated.')); | ||
if (requiresResult && !result) { | ||
compilation.warnings.push(new Error('Using ' + eventName + ' without returning a result is deprecated.')); | ||
} | ||
@@ -638,0 +638,0 @@ return _.extend(pluginArgs, result); |
{ | ||
"name": "html-webpack-plugin", | ||
"version": "2.24.0", | ||
"version": "2.24.1", | ||
"description": "Simplifies creation of HTML files to serve your webpack bundles", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53288