Closed fstanis closed 5 years ago
Allow parseSample to override file contents instead of reading from fs. This is useful for on-the-fly processing, e.g. the file was created in-memory and isn't stored on the disk, such as gulp Vinyl.
parseSample
fs
Vinyl
Related to ampproject/docs#2389.
Interesting side-effect: this significantly speeds up sample build time for amp.dev.
Allow
parseSample
to override file contents instead of reading fromfs
. This is useful for on-the-fly processing, e.g. the file was created in-memory and isn't stored on the disk, such as gulpVinyl
.Related to ampproject/docs#2389.