nuxt-dead-code
v1.0.1
Published
Nuxt module for adding vite-dead-code
Downloads
3
Readme
nuxt-dead-code
Strips dead code from Javascript
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.