Change assets deprecation from error to warning

This commit is contained in:
Chris 2015-05-26 13:07:30 +01:00
parent 3a834f47bb
commit e5a210c60d
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ HtmlWebpackPlugin.prototype.apply = function(compiler) {
var assets = self.htmlWebpackPluginLegacyAssets(compilation, webpackStatsJson);
Object.defineProperty(templateParams.htmlWebpackPlugin, 'assets', {
get: function() {
compilation.errors.push(new Error('HtmlWebPackPlugin: htmlWebpackPlugin.assets is deprecated - please use htmlWebpackPlugin.files instead'));
compilation.warnings.push(new Error('HtmlWebPackPlugin: htmlWebpackPlugin.assets is deprecated - please use htmlWebpackPlugin.files instead'));
return assets;
}
});