diff --git a/content/plugins/define-plugin.md b/content/plugins/define-plugin.md index c520400060fd..46e026b6aebd 100644 --- a/content/plugins/define-plugin.md +++ b/content/plugins/define-plugin.md @@ -83,6 +83,8 @@ new webpack.DefinePlugin({ }) ``` +W> When defining values for `process` prefer `'process.env.NODE_ENV': JSON.stringify('production')` over `process: { env: { NODE_ENV: JSON.stringify('production') } }`. Using the latter will overwrite the `process` object which can break compatibility with some modules that expect other values on the process object to be defined. + ## Service URLs