You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The asset content can be obtained from `asset.source` using `source` method.
762
-
// The asset content is a [`Buffer`](https://nodejs.org/api/buffer.html) object, it could be converted to a `String` to be processed using `content.toString()`
763
-
constcontent=asset.data;
762
+
// Each `asset` contains the following data structure:
763
+
// {
764
+
// data: [`Buffer`], // asset text content can be obtained via asset.data.toString()
765
+
// sourceFilename: [`String`],
766
+
// absoluteFilename: [`String`],
767
+
// }
768
+
// The asset content can be obtained from `asset.data`.
769
+
// The asset content is a [`Buffer`](https://nodejs.org/api/buffer.html) object, it could be converted to a `String` to be processed using `data.toString()`
0 commit comments