rollup-plugin-clean2
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

rollup-plugin-clean

A Rollup plugin to clean the specified directories before building.

Usage

import clean from 'rollup-plugin-clean2';

export default {
  plugins: [
    clean({
      targets: ['dist/**'],
    }),
  ],
};

Options

targets

  • type: string[]
  • default: ['dist/**']

The target directories to clean before building.

watch

  • type: boolean
  • default: false

Whether to clean the directories when enable watch mode.

License

MIT

Package Sidebar

Install

npm i rollup-plugin-clean2

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

302 kB

Total Files

4

Last publish

Collaborators

  • vinsurs