mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-03-27 01:34:17 +08:00
Update getting-started.md
Fix __DEV__ value in example web/webpack.config.js Close #862
This commit is contained in:
committed by
Nicolas Gallagher
parent
eae3ee9dca
commit
7b9b57960d
@@ -231,7 +231,7 @@ module.exports = {
|
||||
// wish to include additional optimizations.
|
||||
new webpack.DefinePlugin({
|
||||
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'development'),
|
||||
__DEV__: process.env.NODE_ENV === 'production' || true
|
||||
__DEV__: process.env.NODE_ENV !== 'production' || true
|
||||
})
|
||||
],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user