Permalink
Browse files

Fix `react-web start` "Uncaught ReferenceError: __DEV__ is not defined"

  • Loading branch information...
1 parent be22b4e commit c8e8eaf8630c66dd643b97eb892c166b24cfa59d @flyskywhy flyskywhy committed Aug 4, 2016
Showing with 2 additions and 1 deletion.
  1. +2 −1 web/webpack.config.js
@@ -51,7 +51,8 @@ module.exports = {
new webpack.DefinePlugin({
'process.env': {
'NODE_ENV': JSON.stringify(isProd? PROD: DEV),
- }
+ },
+ '__DEV__': !isProd
}),
isProd? new webpack.ProvidePlugin({
React: "react"

0 comments on commit c8e8eaf

Please sign in to comment.