mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-25 23:05:23 +00:00
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