Package Exports
- rollup-plugin-cleaner
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rollup-plugin-cleaner) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
rollup-plugin-cleaner
🗑️ 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