Generate A Unique JS Bundle Name

If you’re using Parcel JS and you’re not happy with the outputted bundle file names, you can easily change it with this helpful bash script.

touch && chmod +x

Pop open and add in the following contents:

Now in your package.json you can add a script like so:

scripts: {
  "predeploy": "./"

That’s it. Hope you find this one useful.