A parcel plugin to remove/clean your build folder(s) before building
npm
npm i parcel-plugin-clean-easy -D
yarn
yarn add parcel-plugin-clean-easy --dev
// package.json
{
"parcelCleanPaths": []
}
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
]
Add this option to your package.json to allow the plugin cleaning outside folders.