Skip to content

Commit c54df36

Browse files
authored
Merge pull request webpack#6609 from marcalexiei/configuration-version-error
Fix version in configuration error messages
2 parents 4f39932 + 92a3fc2 commit c54df36

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/WebpackOptionsValidationError.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class WebpackOptionsValidationError extends WebpackError {
155155
case "debug":
156156
return (
157157
`${baseMessage}\n` +
158-
"The 'debug' property was removed in webpack 2.\n" +
158+
"The 'debug' property was removed in webpack 2.0.0.\n" +
159159
"Loaders should be updated to allow passing this option via loader options in module.rules.\n" +
160160
"Until loaders are updated one can use the LoaderOptionsPlugin to switch loaders into debug mode:\n" +
161161
"plugins: [\n" +
@@ -166,8 +166,7 @@ class WebpackOptionsValidationError extends WebpackError {
166166
);
167167
}
168168
return (
169-
baseMessage +
170-
"\n" +
169+
`${baseMessage}\n` +
171170
"For typos: please correct them.\n" +
172171
"For loader options: webpack >= v2.0.0 no longer allows custom properties in configuration.\n" +
173172
" Loaders should be updated to allow passing options via loader options in module.rules.\n" +

0 commit comments

Comments
 (0)