Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Fix react-web start "Uncaught ReferenceError: __DEV__ is not defined"
Browse files Browse the repository at this point in the history
  • Loading branch information
flyskywhy committed Aug 16, 2016
1 parent be22b4e commit c8e8eaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/webpack.config.js
Expand Up @@ -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"
Expand Down

0 comments on commit c8e8eaf

Please sign in to comment.