Skip to content
This repository has been archived by the owner on Nov 15, 2019. It is now read-only.

Commit

Permalink
fix(index): hide warnings when options.hideMessage is truthy (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanBijzitter authored and michael-ciniawsky committed Apr 15, 2017
1 parent fa800c6 commit d4c7877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ I18nPlugin.prototype.apply = function(compiler) {
error = this.state.module[__dirname] = new MissingLocalizationError(this.state.module, param, defaultValue);
if (failOnMissing) {
this.state.module.errors.push(error);
} else {
} else if (!hideMessage) {
this.state.module.warnings.push(error);
}
} else if(error.requests.indexOf(param) < 0) {
Expand Down

0 comments on commit d4c7877

Please sign in to comment.