A Rollup plugin that deletes specified directories before each build, ensuring clean output. Version 1.0.0 is the latest stable release; the package is minimal and rarely updated. It simplifies cleaning build artifacts compared to manually using `rimraf` or shell commands, with options for silent mode. Alternative plugins like rollup-plugin-delete offer similar functionality with more features.
npm install rollup-plugin-cleanerVerified import paths — ran on the pinned version, not inferred.
Configures rollup-plugin-cleaner to delete the ./build directory before each build.
Specify explicit paths like './build/' instead of '.'.
Consider using rollup-plugin-delete as a maintained alternative.
Use import cleaner from 'rollup-plugin-cleaner'.
Run npm install rollup-plugin-cleaner --save-dev.