Skip to content

Commit 1d4c82f

Browse files
authored
Fix webpack DefinePlugin usage example
1 parent c2362f3 commit 1d4c82f

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)