fix(credentials): Pass credentials through DefinePlugin

This commit is contained in:
Stuart Taylor
2018-03-09 15:59:45 +00:00
parent a0c3d5bd08
commit fa59bcfd7b
4 changed files with 12 additions and 14 deletions

View File

@@ -55,7 +55,9 @@ module.exports = {
'process.env': {
NODE_ENV: JSON.stringify(__DEV__ ? 'development' : 'production')
},
__DEVTOOLS__: !__DEV__
__DEVTOOLS__: !__DEV__,
__OPBEAT__ORG_ID: JSON.stringify(process.env.OPBEAT_FRONTEND_ORG_ID),
__OPBEAT__APP_ID: JSON.stringify(process.env.OPBEAT_FRONTEND_APP_ID)
}),
// Use browser version of visionmedia-debug
new webpack.NormalModuleReplacementPlugin(