Skip to content

alwaysonlinetxm/rollup-plugin-clean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rollup-plugin-clean

Clean the build directory before rebuilding.

Installation

yarn add -D rollup-plugin-clean

or

npm install -D rollup-plugin-clean

Usage

In the rollup.config.js:

import clean from 'rollup-plugin-clean';

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

and the dist directory will be removed everytime rebuilding.

License

MIT

About

Clean the dest directory before rebuilding.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published