Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/valentiniljaz/rollup-plugin-clean-after
Clean up dirs after the Rollup build ends
https://github.com/valentiniljaz/rollup-plugin-clean-after
Last synced: 24 days ago
JSON representation
Clean up dirs after the Rollup build ends
- Host: GitHub
- URL: https://github.com/valentiniljaz/rollup-plugin-clean-after
- Owner: valentiniljaz
- License: mit
- Created: 2022-03-24T14:26:01.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-30T08:53:05.000Z (over 2 years ago)
- Last Synced: 2024-11-20T21:19:04.454Z (about 1 month ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rollup.js plugin: Clean after
Clean up dirs after the Rollup build ends
## Installation
### npm
`npm install rollup-plugin-clean-after --save-dev`
### yarn
`yarn add rollup-plugin-clean-after --dev`
## Usage
### Options
| Option | Type | Description | Default |
| --------- | --------- | -------------------------------------------------------------- | ------- |
| `targets` | `Array` | List of directories which should be cleaned after every build. | `[]` |
| `silent` | `Boolean` | Flag to disable logging output to console. | `false` |### Example
To remove the `dist/src` directory after every build add the following to `rollup.config.js`:
```JavaScript
import cleanAfter from 'rollup-plugin-clean-after';export default {
entry: './src/index.js',
output: {
dest: './dist/bundle.js',
},
plugins: [
cleanAfter({
targets: [
'./dist/src/'
]
})
]
};
```## License
MIT