Merge pull request #6611 from kvrlk/patch-1

Make error messages better
This commit is contained in:
Tobias Koppers 2018-03-01 13:25:14 +01:00 committed by GitHub
commit f6e366b4be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -169,7 +169,7 @@ class WebpackOptionsValidationError extends WebpackError {
baseMessage +
"\n" +
"For typos: please correct them.\n" +
"For loader options: webpack 2 no longer allows custom properties in configuration.\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" +
" Until loaders are updated one can use the LoaderOptionsPlugin to pass these options to the loader:\n" +
" plugins: [\n" +

View File

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