Good day,
I set up Webpack to create an optimized build of my React application to /dist/ with webpack --mode production --config webpack.config.production.js , which automatically inserts the correct initial script into the head of index.html (webpack.config.production.js, index.html). This works using my Rust back-end to serve the production-built files. However, my script that utilizes webpack serve --mode development --config webpack.config.js to enable hot-reloading does not insert the named script into the HTML file, and thus fails to load (webpack.config.js).
I have spent the past hour and a half trying everything I could find to fix this to no avail, and I would greatly appreciate any assistance. Further, if there is a way to utilize my Rust backend with hot-reloading that would be a superior solution :).