diff --git a/index.js b/index.js index c2fe8aa..05fdad7 100644 --- a/index.js +++ b/index.js @@ -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; } });