I\'m using webpack to bundle an isomorphic JS app (based on this example) so that the browser runs the same code as the server. Everything is running smoothly except I have
Yeah; looks like envify-loader was the easy solution.
I just added the following to my webpack loaders:
{ test: /config\.js$/, loader: "envify-loader" }
And the config.js (and only that file) is modified to include any referenced environment variables statically :)
config.js