Cleaning up a Distribution Folder

Install the rimraf npm module by typing the following at the prompt of your terminal:

npm install --save-dev rimraf

Then, set up in package.json the following script:

"clean": "rimraf dist",