@codecov/webpack-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-beta.6 • Public • Published

Codecov by Sentry logo

Codecov Webpack Plugin

[!WARNING]
These plugins are currently in beta and are subject to change.

A Webpack plugin that provides bundle analysis support for Codecov.

The plugin does not support code coverage, see our docs to set up coverage today!

Installation

Using npm:

npm install @codecov/webpack-plugin --save-dev

Using yarn:

yarn add @codecov/webpack-plugin --dev

Using pnpm:

pnpm add @codecov/webpack-plugin --save-dev

Example

// webpack.config.js
const path = require("path");
const { codecovWebpackPlugin } = require("@codecov/webpack-plugin");

module.exports = {
  entry: "./src/index.js",
  mode: "production",
  output: {
    filename: "main.js",
    path: path.resolve(__dirname, "dist"),
  },
  plugins: [
    // Put the Codecov vite plugin after all other plugins
    codecovWebpackPlugin({
      enableBundleAnalysis: true,
      bundleName: "example-webpack-bundle",
      uploadToken: process.env.CODECOV_TOKEN,
    }),
  ],
};

More information

Package Sidebar

Install

npm i @codecov/webpack-plugin

Weekly Downloads

3,416

Version

0.0.1-beta.6

License

MIT

Unpacked Size

36.5 kB

Total Files

10

Last publish

Collaborators

  • codecov-devops
  • trent-codecov
  • nicholas-codecov
  • hootener
  • drazisil