1.0.2 • Published 2 years ago

rollup-plugin-clean-after v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Rollup.js plugin: Clean after

Clean up dirs after the Rollup build ends

Installation

npm

npm install rollup-plugin-clean-after --save-dev

yarn

yarn add rollup-plugin-clean-after --dev

Usage

Options

OptionTypeDescriptionDefault
targetsArrayList of directories which should be cleaned after every build.[]
silentBooleanFlag to disable logging output to console.false

Example

To remove the dist/src directory after every build add the following to rollup.config.js:

import cleanAfter from 'rollup-plugin-clean-after';

export default {
  entry: './src/index.js',
  output: {
    dest: './dist/bundle.js',
  },
  plugins: [
    cleanAfter({
      targets: [
        './dist/src/'
      ]
    })
  ]
};

License

MIT