A Rollup plugin for emptying directories or deleting files before a build. Version 1.0.0, stable. Differentiates by supporting both directory emptying and file deletion via fast-glob patterns, silent mode option for logging control. Useful for cleaning output directories as part of the build pipeline.
npm install rollup-plugin-emptyVerified import paths — ran on the pinned version, not inferred.
Demonstrates emptying the 'dist' directory before building with Rollup.
Use either `file` or `dir` exclusively, or carefully design patterns to avoid overlap.
Use absolute paths or ensure cwd is correct.
Explicitly set 'silent' to desired value.
Use `import empty from 'rollup-plugin-empty'`
Ensure files exist at build start or use 'dir' option instead.