rollup-plugin-cleandir
v3.0.0
Published
Rollup Plugin for empty output directories.
Downloads
5,750
Readme
rollup-plugin-cleandir
🧹 Rollup plugin to Clean output directories automatically.
Install
$ npm install --save-dev rollup-plugin-cleandir
Usage
import { cleandir } from "rollup-plugin-cleandir";
const OUT_DIR = "./dist";
export default {
input: ["index.js"],
output: {
dir: OUT_DIR,
format: "es",
},
plugins: [cleandir(OUT_DIR)],
};
You can also specify hook
and order
options.
export default {
// ...
plugins: [cleandir(OUT_DIR, { hook: "options", order: "pre" })],
};