I'm writing a React app that integrates with an existing Flask project. If I build the app, take the index.html and move it into Flask's templates, take the js and css folders from the build and move them to Flask's static folder, everything works fine.
What I'd like to do now is ensure that a one step build is possible, which would mean building the React app in such a way that index.html is output directly into Flask's templates and statics are output directly into Flask's statics. I don't know if this is at all possible, though.
Is it possible to configure Webpack to use separate output paths for HTML, js and css when making a build? (Extra info, I'm using an ejected create-react-app to be able to go through Webpack config.)
If it's not possible, is there a different way I could ensure a one step build (e.g. build to default, then move to separate folders automatically)?