Skip to content

Commit 99abb94

Browse files
authored
Merge pull request reactjs#267 from ogonkov/patch-1
Fix webpack `DefinePlugin` usage example
2 parents 2b09c53 + 1d4c82f commit 99abb94

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

content/docs/optimizing-performance.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,7 @@ For the most efficient webpack production build, make sure to include these plug
147147

148148
```js
149149
new webpack.DefinePlugin({
150-
'process.env': {
151-
NODE_ENV: JSON.stringify('production')
152-
}
150+
'process.env.NODE_ENV': JSON.stringify('production')
153151
}),
154152
new webpack.optimize.UglifyJsPlugin()
155153
```

0 commit comments

Comments
 (0)