@packmule/clean-pack
TypeScript icon, indicating that this package has built-in type declarations

2.0.1-nightly.242 • Public • Published

Clean Pack

Clear a directory prior to building the bundle.

Clean Pack uses clean-webpack-plugin to clear a directory before building. It is advised to clear the webpack output directory prior building to get rid of old files.

Setup

npm install --save-dev @packmule/clean-pack

API

CleanPack()

Options

  • root - Defines the root option of clean-webpack-plugin.
  • debug - Controls the verbose option of clean-webpack-plugin.

Usage

Example

Clears the contents of the webpack output directory prior building.

import Packmule from '@packmule/core';
import CleanPack from '@packmule/clean-pack';

const packmule = new Packmule();
packmule.register(new CleanPack());
return packmule.generate();

License

MIT


Package Sidebar

Install

npm i @packmule/clean-pack

Weekly Downloads

23

Version

2.0.1-nightly.242

License

MIT

Unpacked Size

5.1 kB

Total Files

11

Last publish

Collaborators

  • t.esterer
  • thasmo