From 73a61a94e977f158b3bc5c59fa3e8b92b0b42299 Mon Sep 17 00:00:00 2001 From: Jan Nicklas Date: Tue, 9 Jun 2015 09:42:20 +0200 Subject: [PATCH] More verbose warning --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index e940633..b181f6b 100644 --- a/index.js +++ b/index.js @@ -36,7 +36,8 @@ HtmlWebpackPlugin.prototype.apply = function(compiler) { var assets = self.htmlWebpackPluginLegacyAssets(compilation, webpackStatsJson); Object.defineProperty(templateParams.htmlWebpackPlugin, 'assets', { get: function() { - compilation.warnings.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 inject or htmlWebpackPlugin.files instead' + + '\nsee: https://github.com/ampedandwired/html-webpack-plugin/issues/52')); return assets; } });