npm.io
1.0.2 • Published 7 years ago

parcel-plugin-clean-easy-unsafe

Licence
ISC
Version
1.0.2
Deps
1
Size
10 kB
Vulns
0
Weekly
0
Stars
7

Clean for parcel

A parcel plugin to remove/clean your build folder(s) before building

Installation

npm

npm i parcel-plugin-clean-easy -D

yarn

yarn add parcel-plugin-clean-easy --dev

Usage

// package.json
{
  "parcelCleanPaths": [],
  "parcelCleanUnsafePaths": true
}
parcelCleanPaths (Required)

An [array] of string paths to clean

[
  'dist',         // removes 'dist' folder
  'build/*.*',    // removes all files in 'build' folder
  'web/*.js'      // removes all JavaScript files in 'web' folder
]
parcelCleanUnsafePaths (Optional)

Add this option to your package.json to allow the plugin cleaning outside folders.

Keywords