Skip to content

chore: Add default values to fix EnvironmentPlugin warnings

Simon Knox requested to merge env-warnings into master

Adding object uses the values as defaults. They were previously false because of being undefined. That caused this warning:

WARNING in EnvironmentPlugin - IS_GITLAB_INTEGRATION_TEST environment variable is undefined.

You can pass an object with default values to suppress this warning.
See https://webpack.js.org/plugins/environment-plugin for example.

See https://webpack.js.org/plugins/environment-plugin/#usage-with-default-values

Edited by Simon Knox

Merge request reports