Skip to content

Commit 6b85c86

Browse files
authoredMay 15, 2020
docs: improve (#473)
1 parent 3ef3f25 commit 6b85c86

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,9 @@ module.exports = {
421421
{
422422
from: 'src/*.png',
423423
to: 'dest/',
424-
transform(content, path) {
424+
// 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()`
425+
// The `absoluteFrom` argument is a `String`, it is absolute path from where the file is being copied
426+
transform(content, absoluteFrom) {
425427
return optimize(content);
426428
},
427429
},

0 commit comments

Comments
 (0)
Please sign in to comment.