Fix webpack DefinePlugin usage example

This commit is contained in:
Alexey
2017-11-10 00:51:24 +03:00
committed by GitHub
parent c2362f39eb
commit 1d4c82f9be

View File

@@ -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()
```