From 1d4c82f9be7edfcbf22445a3cf42fa60bba2f0ec Mon Sep 17 00:00:00 2001 From: Alexey Date: Fri, 10 Nov 2017 00:51:24 +0300 Subject: [PATCH] Fix webpack `DefinePlugin` usage example --- content/docs/optimizing-performance.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/content/docs/optimizing-performance.md b/content/docs/optimizing-performance.md index e4094ece..b6823ed6 100644 --- a/content/docs/optimizing-performance.md +++ b/content/docs/optimizing-performance.md @@ -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() ```