Detalhes do pacote

rollup-plugin-cleaner

saf33r45.6kMIT1.0.0

A rollup plugin to clean directories before rebuilding.

rollup, rollup-plugin, clean, remove

readme (leia-me)

rollup-plugin-cleaner

:wastebasket: A rollup plugin to clean directories before rebuilding.

Installation

npm

npm install rollup-plugin-cleaner --save-dev

yarn

yarn add rollup-plugin-cleaner --dev

Usage

Options

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

Example

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/'
      ]
    })
  ]
};

License

MIT

changelog (log de mudanças)

Changelog

1.0.0 – July 1, 2019

  • BREAKING CHANGE: Require Rollup 1.0+.
  • BREAKING CHANGE: Require Node 8+.
  • Declare peer and engine dependency.
  • Use Rollup 1.0 plugin API.
  • Run the hook synchronously.
  • Remove unused dependencies.