Skip to content

netfantom-spb/rollup-plugin-cleanup-dir

Repository files navigation

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!

About

Automatically cleanup output.dir before writing a new bundle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published