Skip to content

Commit

Permalink
docs: improve (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi committed May 15, 2020
1 parent 3ef3f25 commit 6b85c86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -421,7 +421,9 @@ module.exports = {
{
from: 'src/*.png',
to: 'dest/',
transform(content, path) {
// The `content` argument is a [`Buffer`](https://nodejs.org/api/buffer.html) object, it could be converted to a `String` to be processed using `content.toString()`
// The `absoluteFrom` argument is a `String`, it is absolute path from where the file is being copied
transform(content, absoluteFrom) {
return optimize(content);
},
},
Expand Down

0 comments on commit 6b85c86

Please sign in to comment.