Closed prichey closed 3 years ago
Currently the plugin does this (here):
const report = require('gatsby-cli/lib/reporter');
which doesn't work in newer versions of Gatsby so the logger falls back to console.log (here).
console.log
The correct approach in Gatsby is to use the GatsbyReporter which is available to onPostBuild, via:
onPostBuild
exports.onPostBuild = async function ({ graphql, reporter }, options) {}
I might be able to work on a PR for this after I merge a few other fixes but if anyone else feels like taking this on, it shouldn't be that bad.
ah thank you, this probably fixes #55, #89 and a few more!
Currently the plugin does this (here):
which doesn't work in newer versions of Gatsby so the logger falls back to
console.log
(here).The correct approach in Gatsby is to use the GatsbyReporter which is available to
onPostBuild
, via: