rollup-plugin-clear-directory
Clear the directory of output.
Installation
npm install --save-dev rollup-plugin-clear-directory
Usage
// rollup.config.js
import clearDirectory from 'rollup-plugin-clear-directory';
export default {
// ...
plugins: [
clearDirectory({
targets: ['dist']
})
]
};