'Shorten file names in react build directory

This is going to sound really dumb but I need a way to shorten file names of my react build folder because I need to upload my react app to a SPIFFS file system on an ESP32 that only supports file names up to 32 characters (including folders). I think an easy way would be to get rid of the hashes at the end of the files but I don't know how to do that.

So how can I shorten the file names of a react app?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source