More verbose warning

This commit is contained in:
Jan Nicklas 2015-06-09 09:42:20 +02:00
parent f210b46b84
commit 73a61a94e9
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}
});