Gem 一覧へ戻る
saf33r/rollup-plugin-cleaner(新しいタブで開きます)
主要言語: JavaScript
A rollup plugin to clean directories before rebuilding.
- star 数
- 7
- watcher 数
- 2
- fork 数
- 1
- issue 数
- 5
- 最終更新
- 2026/03/27
主要言語: JavaScript
A rollup plugin to clean directories before rebuilding.
🗑️ A rollup plugin to clean directories before rebuilding.
npm install rollup-plugin-cleaner --save-dev
yarn add rollup-plugin-cleaner --dev
| Option | Type | Description | Default |
|---|---|---|---|
targets |
Array |
List of directories which should be cleaned on every build. | [] |
silent |
Boolean |
Flag to disable logging output to console. | false |
To remove the build directory on every build add the following to rollup.config.js:
import cleaner from 'rollup-plugin-cleaner'; export default { entry: './src/index.js', output: { dest: './build/bundle.js', }, plugins: [ cleaner({ targets: [ './build/' ] }) ] };
MIT