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

0.0.1-beta.8 • Public • Published

Codecov by Sentry logo

Codecov Nuxt Plugin

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

A Nuxt plugin that provides bundle analysis support for Codecov.

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

[!NOTE] This plugin only support Nuxt 3.x when building with Vite.

Installation

Using npm:

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

Using yarn:

yarn add @codecov/nuxt-plugin --dev

Using pnpm:

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

Example

// nuxt.config.ts
import { defineNuxtConfig } from "nuxt/config";

export default defineNuxtConfig({
  devtools: { enabled: true },
  // Ensure that the builder is set to "vite"
  builder: "vite",
  // Ensure that the plugin is added to the modules array
  modules: [
    [
      "@codecov/nuxt-plugin",
      {
        enableBundleAnalysis: true,
        bundleName: "nuxt-bundle-analysis",
        uploadToken: process.env.CODECOV_UPLOAD_TOKEN,
      },
    ],
  ],
});

More information

Package Sidebar

Install

npm i @codecov/nuxt-plugin

Weekly Downloads

3

Version

0.0.1-beta.8

License

MIT

Unpacked Size

22.1 kB

Total Files

10

Last publish

Collaborators

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