/example-gatsby

@relative-ci/agent webpack plugin setup example for Gatsby & Gatsby Cloud

Primary LanguageCSSMIT LicenseMIT

relativeCI

@relative-ci/agent webpack plugin setup example for Gatsby and Gatsby Cloud

1. Installation

npm install --save-dev @relative-ci/agent
# or
yarn add --dev @relative-ci/agent

2. Webpack plugin configuration

gatsby-node.js

const { RelativeCiAgentWebpackPlugin } = require("@relative-ci/agent")

exports.onCreateWebpackConfig = ({ stage, actions }) => {
  if (stage === "build-javascript") {
    actions.setWebpackConfig({
      plugins: [new RelativeCiAgentWebpackPlugin()],
    })
  }
}

Get started with RelativeCI