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.