Skip to content

Commit f6e366b

Browse files
authored
Merge pull request webpack#6611 from kvrlk/patch-1
Make error messages better
2 parents 6a5d081 + 8d0d2b1 commit f6e366b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/WebpackOptionsValidationError.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class WebpackOptionsValidationError extends WebpackError {
169169
baseMessage +
170170
"\n" +
171171
"For typos: please correct them.\n" +
172-
"For loader options: webpack 2 no longer allows custom properties in configuration.\n" +
172+
"For loader options: webpack >= v2.0.0 no longer allows custom properties in configuration.\n" +
173173
" Loaders should be updated to allow passing options via loader options in module.rules.\n" +
174174
" Until loaders are updated one can use the LoaderOptionsPlugin to pass these options to the loader:\n" +
175175
" plugins: [\n" +

test/Validation.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ describe("Validation", () => {
203203
"loader?, module?, name?, node?, output?, optimization?, parallelism?, performance?, plugins?, profile?, recordsInputPath?, " +
204204
"recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, stats?, target?, watch?, watchOptions? }",
205205
" For typos: please correct them.",
206-
" For loader options: webpack 2 no longer allows custom properties in configuration.",
206+
" For loader options: webpack >= v2.0.0 no longer allows custom properties in configuration.",
207207
" Loaders should be updated to allow passing options via loader options in module.rules.",
208208
" Until loaders are updated one can use the LoaderOptionsPlugin to pass these options to the loader:",
209209
" plugins: [",

0 commit comments

Comments
 (0)