mirror of
https://github.com/wassname/react-webpack-template.git
synced 2026-06-27 17:16:57 +08:00
About this folder
This folder holds configuration files for different environments. You can use it to provide your app with different settings based on the current environment, e.g. to configure different API base urls depending on whether your setup runs in dev mode or is built for distribution. You can include the configuration into your code like this:
let react = require('react/addons');
let config = require('config');
class MyComponent extends React.Component {
constructor(props) {
super(props);
let currentAppEnv = config.appEnv;
}
}