3.0.0 • Published 9 months ago

rollup-plugin-cleandir v3.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
9 months ago

rollup-plugin-cleandir

Test npm version

🧹 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" })],
};