Commit Graph

6 Commits

Author SHA1 Message Date
Einar Löve b1aa918a65 Remove check for this.silent 2016-11-10 10:42:27 +01:00
Einar Löve 062daaef9c Add drepecation notice for multiple arguments of strings 2016-11-10 09:46:28 +01:00
Einar Löve 92d94307af Allow object with default values to EnvironmentPlugin 2016-11-10 09:46:24 +01:00
Einar Löve 7ffa11096d Add option to silence warnings from environment plugin
If a process.env variable is is added to the EnvironmentPlugin but not defined, it is reported in the terminal as:
`WARNING in NODE_ENV environment variable is undefined.`

This pull request adds an option as the second argument to EnvironmentPlugin to silence the warnings.

Example:
```js
plugins: [
  new webpack.EnvironmentPlugin([
    'NODE_ENV',
  ], true),
],
```
2016-11-10 09:46:06 +01:00
Tobias Koppers f7d799adb4 rebeautify without spacing after keyword 2015-07-16 00:19:23 +02:00
Tobias Koppers 6171417273 fixed enviroment plugin test cases 2015-01-06 23:02:44 +01:00