Back to Gems
sheltondong/rollup-plugin-clear(opens in a new tab)
Language: TypeScript
Rollup clean plugin
- stars
- 13
- watchers
- 1
- forks
- 0
- open issues
- 2
- Last updated
- 02/14/2018
Language: TypeScript
Rollup clean plugin
Rollup clear plugin
npm install --save-dev rollup-plugin-clear
// 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.