Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sheltondong/rollup-plugin-clear
Rollup clean plugin
https://github.com/sheltondong/rollup-plugin-clear
Last synced: 25 days ago
JSON representation
Rollup clean plugin
- Host: GitHub
- URL: https://github.com/sheltondong/rollup-plugin-clear
- Owner: sheltondong
- Created: 2018-02-13T10:52:53.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-14T01:56:28.000Z (almost 7 years ago)
- Last Synced: 2024-05-18T20:42:24.201Z (7 months ago)
- Language: TypeScript
- Size: 51.8 KB
- Stars: 12
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - clear - Clear an output directory before a build. (Plugins / Output)
README
# rollup-plugin-clear
Rollup clear plugin
### Installation
```shell
npm install --save-dev rollup-plugin-clear
```
### Usage
```javascript
// rollup.config.js
import clear from 'rollup-plugin-clear'const config = {
// ...
plugins: [
// ...
clear({
// required, point out which directories should be clear.
targets: ['some directory'],
// optional, whether clear the directores when rollup recompile on --watch mode.
watch: true, // default: false
})
]
}export default config;
```
This plugin can help you to clear the specific directories when the rollup bundle your resource.