Skip to content

Commit

Permalink
Merge pull request #6609 from marcalexiei/configuration-version-error
Browse files Browse the repository at this point in the history
Fix version in configuration error messages
  • Loading branch information
sokra committed Mar 6, 2018
2 parents 4f39932 + 92a3fc2 commit c54df36
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/WebpackOptionsValidationError.js
Expand Up @@ -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" +
Expand All @@ -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" +
Expand Down

0 comments on commit c54df36

Please sign in to comment.