rollup-plugin-cleandir
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

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

Package Sidebar

Install

npm i rollup-plugin-cleandir

Weekly Downloads

8,133

Version

3.0.0

License

MIT

Unpacked Size

3.84 kB

Total Files

5

Last publish

Collaborators

  • mstssk