relativeCI

Specialized insights for web bundles

Documentation

Webpack Plugin Setup

  1. Configure Webpack
  2. Configure the Continuous Integration Service
  3. Configure Github

1. Configure Webpack

Add RelativeCiAgentWebpackPlugin to your plugins:

// webpack.config.js
const { RelativeCiAgentWebpackPlugin } = require('@relative-ci/agent');
module.exports = {
  // ...
  plugins: [
    // ...
    new RelativeCiAgentWebpackPlugin()  ]
};

Plugin options

  • enabled - send the stats to RelativeCI (default to env-ci isCi)
  • includeCommitMessage - will include git commit message (default true)
  • stats - Webpack stats options, default:

    {
      stats: {
        context: WEBPACK_CONTEXT,
        assets: true,
        entrypoints: true,
        chunks: true,
        modules: true,
      }
    }

2. Configure the Continuous Integration service

Add RELATIVE_CI_KEY to your CI service:

I am using another continuous integration service

3. Configure Github

Install RelativeCI Github application.