1.0.0 • Published 1 year ago

rollup-plugin-clean2 v1.0.0

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

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

1.0.0

1 year ago