0.1.1 • Published 4 years ago
rollup-plugin-lost v0.1.1
rollup-plugin-zip
Rollup plugin to list lost (unused) files in the project directory.
Lost files are listed in the stderr.
Install
npm i -D rollup-plugin-lostUsage
Source files
// src/index.js
import usedMod from './used'
console.log(usedMod)// src/used.js
export default 'used-module'// src/lost.js
export default 'lost-module'Configuration
// rollup.config.js
import lost from 'rollup-plugin-lost'
export default {
input: 'src/index.js',
output: {
dir: 'dist',
format: 'es',
},
plugins: [
lost(),
],
}Output
Lost files:
test/lost.jsOptions
include
Type
string | RegExp | (string | RegExp)[] | null | undefinedDefault
'src/**/*'Patterns to search for lost files.
exclude
Type
string | RegExp | (string | RegExp)[] | null | undefinedOptional patterns to exclude from search for lost files.