Skip to content

Commit

Permalink
Merge pull request #6611 from kvrlk/patch-1
Browse files Browse the repository at this point in the history
Make error messages better
  • Loading branch information
sokra committed Mar 1, 2018
2 parents 6a5d081 + 8d0d2b1 commit f6e366b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/WebpackOptionsValidationError.js
Expand Up @@ -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" +
Expand Down
2 changes: 1 addition & 1 deletion test/Validation.test.js
Expand Up @@ -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: [",
Expand Down

0 comments on commit f6e366b

Please sign in to comment.