A Rollup plugin to clean the specified directories before building.
import clean from 'rollup-plugin-clean2';
export default {
plugins: [
clean({
targets: ['dist/**'],
}),
],
};
- type:
string[]
- default:
['dist/**']
The target directories to clean before building.
- type:
boolean
- default:
false
Whether to clean the directories when enable watch mode.
MIT