1.0.6 • Published 4 years ago

parcel-dist-cleaner v1.0.6

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

Parcel Dist Cleaner

A script that removes all files from the dist directory.

Useful when using Parcel Bundler before using the parcel build command, as files are bundled in the dist directory with unique serial numbers and are not overwritten.

As installed package:

npm i parcel-dist-cleaner

Node useage:

node ./node_modules/parcel-dist-cleaner/distCleaner

NPM script useage with Parcel: (package.json)

...
  "scripts": {
    "start": "parcel src/index.html --open",
    "clean": "node ./node_modules/parcel-dist-cleaner/distCleaner",
    "prod": "npm run clean && parcel build src/index.html"
  },
...

Optionally can move distCleaner.js to the root directory to make it nicer:

node distCleaner

Author

Stefan Bobrowski

stefanbobrowski.com

1.0.6

4 years ago

1.0.2

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago