We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76faaca commit bde4ce4Copy full SHA for bde4ce4
docs/api/js-plugin-api.md
@@ -743,7 +743,7 @@ const myPlugin = () => ({
743
transformHtml: {
744
order: 2,
745
async executor({ htmlResource }) {
746
- const htmlCode = Buffer.from(htmlResource).toString();
+ const htmlCode = Buffer.from(htmlResource.bytes).toString();
747
748
const newHtmlCode = htmlCode.replace('my-app-data', data);
749
htmlResource.bytes = [...Buffer.from(newHtmlCode)];
0 commit comments