rollup-plugin-cleanup-dir
v1.0.8
Published
Automatically cleanup output.dir before writing a new bundle
Downloads
16
Maintainers
Readme
Automatically empty the output.dir
folder before writing a new bundle.
Only rollup3 is supported!
Table of Contents
Getting started
Use this plugin with the bundler Rollup.
Installation
$ npm i rollup-plugin-cleanup-dir -D
Usage
// rollup.config.js
import cleanupDir from 'rollup-plugin-cleanup-dir'
export default {
input: '....',
output: {
dir: '...',
},
plugins: [cleanupDir()]
}
This Rollup plugin has no options, it just empties the dir
folder during the build process, right before Rollup writes any files.
Features
TypeScript Definitions
TypeScript definitions are included, so no need to install an additional @types
library!