@relative-ci/agent webpack plugin setup example for Gatsby and Gatsby Cloud
npm install --save-dev @relative-ci/agent
# or
yarn add --dev @relative-ci/agent
const { RelativeCiAgentWebpackPlugin } = require("@relative-ci/agent")
exports.onCreateWebpackConfig = ({ stage, actions }) => {
if (stage === "build-javascript") {
actions.setWebpackConfig({
plugins: [new RelativeCiAgentWebpackPlugin()],
})
}
}