1.0.8 • Published 1 year ago

rollup-plugin-cleanup-dir v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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!