From 92a3fc2cd36c4cdc864865f1bfc37dc1d0fbe447 Mon Sep 17 00:00:00 2001 From: marcalexiei Date: Fri, 2 Mar 2018 17:05:23 +0100 Subject: [PATCH] =?UTF-8?q?Config=20error=20message=20=E2=80=93=20fix=20ve?= =?UTF-8?q?rsion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/WebpackOptionsValidationError.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/WebpackOptionsValidationError.js b/lib/WebpackOptionsValidationError.js index 851bbb5a67b..4d8abd7d54f 100644 --- a/lib/WebpackOptionsValidationError.js +++ b/lib/WebpackOptionsValidationError.js @@ -155,7 +155,7 @@ class WebpackOptionsValidationError extends WebpackError { case "debug": return ( `${baseMessage}\n` + - "The 'debug' property was removed in webpack 2.\n" + + "The 'debug' property was removed in webpack 2.0.0.\n" + "Loaders should be updated to allow passing this option via loader options in module.rules.\n" + "Until loaders are updated one can use the LoaderOptionsPlugin to switch loaders into debug mode:\n" + "plugins: [\n" + @@ -166,8 +166,7 @@ class WebpackOptionsValidationError extends WebpackError { ); } return ( - baseMessage + - "\n" + + `${baseMessage}\n` + "For typos: please correct them.\n" + "For loader options: webpack >= v2.0.0 no longer allows custom properties in configuration.\n" + " Loaders should be updated to allow passing options via loader options in module.rules.\n" +