gatsby-plugin-printer
Node API
This is a declarative API that lets the library control batching, caching, etc. Creating Printer
nodes via this API doesn't give you a fileName
back, so you would have to specify one.
const createPrinterNode = ; exports { if nodeinternaltype === "Mdx" // createPrinterNode creates an object that can be passed in // to `createNode` ; };
Manual control
You can also import and use runScreenshots
but note that you will have to control batching, etc yourself.
exports { const data = await ; const titles = dataallBlogPostnodes; await ;}