Skip to content

Commit

Permalink
hide blurredPlaceholders warning (#1151)
Browse files Browse the repository at this point in the history
  • Loading branch information
att55 authored Mar 1, 2021
1 parent e2b8676 commit e20e975
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,12 @@ class AddBlurryImagePlaceholders {
// generation at runtime
this.missingDependencies_ = false;
if (!isDependencyInstalled('jimp') || !isDependencyInstalled('lru-cache')) {
this.log_.warn(
'jimp and lru-cache need to be installed via `npm install jimp lru-cache` ' +
'for this transformer to work'
);
if (this.blurredPlaceholders_) {
this.log_.warn(
'jimp and lru-cache need to be installed via `npm install jimp lru-cache` ' +
'for this transformer to work'
);
}
// we can't generate placeholders
this.blurredPlaceholders_ = false;
this.missingDependencies_ = true;
Expand Down

0 comments on commit e20e975

Please # to comment.