Skip to content

relative-ci/example-gatsby

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published