rollup-plugin-clear

2.0.7 • Public • Published

rollup-plugin-clear

Rollup clear plugin

Installation

npm install --save-dev rollup-plugin-clear

Usage

// rollup.config.js
import clear from 'rollup-plugin-clear'
 
const config = {
    // ...
    plugins: [
        // ...
        clear({
            // required, point out which directories should be clear.
            targets: ['some directory'],
            // optional, whether clear the directores when rollup recompile on --watch mode.
            watch: true, // default: false
        })
    ]
}
 
export default config;

This plugin can help you to clear the specific directories when the rollup bundle your resource.

Package Sidebar

Install

npm i rollup-plugin-clear

Weekly Downloads

5,041

Version

2.0.7

License

ISC

Unpacked Size

3.04 kB

Total Files

3

Last publish

Collaborators

  • shelton