mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 12:13:11 +00:00
Merge pull request #267 from ogonkov/patch-1
Fix webpack `DefinePlugin` usage example
This commit is contained in:
@@ -147,9 +147,7 @@ For the most efficient webpack production build, make sure to include these plug
|
||||
|
||||
```js
|
||||
new webpack.DefinePlugin({
|
||||
'process.env': {
|
||||
NODE_ENV: JSON.stringify('production')
|
||||
}
|
||||
'process.env.NODE_ENV': JSON.stringify('production')
|
||||
}),
|
||||
new webpack.optimize.UglifyJsPlugin()
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user