1.0.5 • Published 3 years ago

rollup-plugin-empty-dir v1.0.5

Weekly downloads
141
License
MIT
Repository
github
Last release
3 years ago

npm (scoped) GitHub last commit License TypeScript Declarations Included

Fiverr: We make Chrome extensions ko-fi


Automatically empty the output.dir folder before writing a new bundle. Useful for code splitting, where chunks with different hashes can accumulate from multiple builds.

Table of Contents

Getting started

Use this plugin with the bundler Rollup.

Installation

$ npm i rollup-plugin-empty-dir -D

Usage

// rollup.config.js

import { emptyDir } from 'rollup-plugin-empty-dir'

export default {
  input: 'src/index.js',
  output: {
    dir: 'dist',
    format: 'esm',
  },
  plugins: [emptyDir()]
}

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!

1.0.5

3 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago