0👍
✅
You want to use webpack.DefinePlugin
: http://developmentnow.com/2016/07/13/webpack-injecting-server-urls/
Source:stackexchange.com