nuxt-dead-code
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

nuxt-dead-code

Strips dead code from Javascript

npm version npm downloads License Nuxt

Install

pnpm add nuxt-dead-code

Usage

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  modules: [
    ['nuxt-dead-code', {
      replaceValues: {
        keepMe: true
      }
    }]
  ]
})

How it works

This module does little more than register the vite-dead-code plugin (also developed by me). For more information on how that plugin works and its options go read its documentation.

/nuxt-dead-code/

    Package Sidebar

    Install

    npm i nuxt-dead-code

    Weekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    2.78 MB

    Total Files

    7

    Last publish

    Collaborators

    • simonhyll