New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

nuxt-dead-code

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-dead-code

Nuxt module for adding vite-dead-code

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
6
500%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

nuxt

FAQs

Package last updated on 17 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts