Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf stuff #366

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/redux/containers/Root.dev.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React, { Component } from 'react';
import Perf from 'react-addons-perf';
window.Perf = Perf;
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
"object-invariant-test-helper": "0.1.1",
"phantomjs-prebuilt": "2.1.12",
"react-addons-create-fragment": "15.2.1",
"react-addons-perf": "15.2.1",
"react-addons-test-utils": "15.2.1",
"redux-devtools": "3.3.1",
"redux-devtools-dock-monitor": "1.1.1",
Expand Down
3 changes: 3 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ var isDev = (process.env.NODE_ENV === 'development');
// process.env with webpack, we have to create these magic constants
// individually.
var defineEnvPlugin = new webpack.DefinePlugin({
'process.env': {
'NODE_ENV': isDev ? JSON.stringify('development') : JSON.stringify('production')
},
__UPLOAD_API__: JSON.stringify(process.env.UPLOAD_API || null),
__API_HOST__: JSON.stringify(process.env.API_HOST || null),
__INVITE_KEY__: JSON.stringify(process.env.INVITE_KEY || null),
Expand Down