https://github.com/mentaljam/rollup-plugin-lost
Rollup plugin to list lost (unused) files in the project directory.
https://github.com/mentaljam/rollup-plugin-lost
lost plugin rollup unused
Last synced: 11 months ago
JSON representation
Rollup plugin to list lost (unused) files in the project directory.
- Host: GitHub
- URL: https://github.com/mentaljam/rollup-plugin-lost
- Owner: mentaljam
- License: mit
- Created: 2020-03-26T10:43:38.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-08-03T06:16:50.000Z (almost 3 years ago)
- Last Synced: 2025-06-25T09:57:58.678Z (11 months ago)
- Topics: lost, plugin, rollup, unused
- Language: TypeScript
- Size: 67.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rollup-plugin-zip
[Rollup](https://github.com/rollup/rollup) plugin to list lost (unused) files
in the project directory.
Lost files are listed in the stderr.
## Install
```sh
npm i -D rollup-plugin-lost
```
## Usage
### Source files
```js
// src/index.js
import usedMod from './used'
console.log(usedMod)
```
```js
// src/used.js
export default 'used-module'
```
```js
// src/lost.js
export default 'lost-module'
```
### Configuration
```js
// 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.js
```
## Options
### include
#### Type
```js
string | RegExp | (string | RegExp)[] | null | undefined
```
#### Default
```js
'src/**/*'
```
Patterns to search for lost files.
### exclude
#### Type
```js
string | RegExp | (string | RegExp)[] | null | undefined
```
Optional patterns to exclude from search for lost files.
## License
[MIT](LICENSE) © [Petr Tsymbarovich](mailto:petr@tsymbarovich.ru)