I have a web application that is written with React and bundled with Webpack. The application has a JSON config file that I want to include at runtime and not to be bundled
If your config is not so confidential, you could do this in your index.html
And in your react application get your config with
const applicationInitialState = window.__INITIAL_STATE__; const config = applicationInitialState.config;