I want to extract a React application into a single runnable HTML file to save it on the server and pass it around using FTP. Is that possible?
Asked
Active
Viewed 29 times
0
-
Have you tried building the React project? It will not be a single file though, it will give you at least two files one HTML and another js – Hasan Aga Sep 14 '22 at 11:34
-
You have to modify the webpack there are some solution to do this but I don't recommend this way. Here is related solutions=> https://stackoverflow.com/questions/51949719/is-there-a-way-to-build-a-react-app-in-a-single-html-file – sarpere Sep 14 '22 at 12:35