parcel-dist-cleaner

1.0.6 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i parcel-dist-cleaner

      Weekly Downloads

      1

      Version

      1.0.6

      License

      MIT

      Unpacked Size

      1.85 kB

      Total Files

      3

      Last publish

      Collaborators

      • anatolio