Create-react-app: With CRA, how do I disable redux-logger in production?

Created on 13 Feb 2018  路  3Comments  路  Source: facebook/create-react-app

I started with the create-react-app and am still using its build files. How do I disable redux-logger from logging in production (but keep it doing so in dev)?

Most helpful comment

if (process.env.NODE_ENV === 'development') {
  // add `redux-logger`
}

All 3 comments

if (process.env.NODE_ENV === 'development') {
  // add `redux-logger`
}

Where is that? Grep is either returning me a lot of matches or none at all. :/

You need to add that code, but this question is better served for a React community like reactiflux or stack overflow.

If you share your code we might be able to help.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ap13p picture ap13p  路  3Comments

adrice727 picture adrice727  路  3Comments

Evan-GK picture Evan-GK  路  3Comments

fson picture fson  路  3Comments

JimmyLv picture JimmyLv  路  3Comments