• Details for the Codecov Webpack plugin.

    Parameters

    Returns WebpackPluginInstance

    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",
    gitService: "github",
    }),
    ],
    };

    See

    Options for list of options.

Generated using TypeDoc