Skip to content

Commit b5c6b36

Browse files
committed
Fix example2 in readme.
1 parent 5ef62fb commit b5c6b36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Using [`sharp`](https://www.npmjs.com/package/sharp), returns the grayscale vers
4040
loader: 'custom-loader',
4141
options: {
4242
callback: (source, sourceMap, callback) => {
43-
sharp().grayscale().toBuffer(callback);
43+
sharp(source).grayscale().toBuffer(callback);
4444
}
4545
}
4646
}

0 commit comments

Comments
 (0)