Commit Graph

29 Commits

Author SHA1 Message Date
Florent Cailhol f1092ad516 Update prettier toolchain 2018-03-26 16:56:10 +02:00
Tobias Koppers 5238159d21 run prettier on existing code 2018-02-25 02:00:20 +01:00
Tobias Koppers edd8daf1d7 Merge branch 'master' into next
# Conflicts:
#	lib/optimize/ConcatenatedModule.js
#	package.json
#	yarn.lock
2018-02-09 17:04:33 +01:00
Anna Henningsen 8da8b93ed4 Work around Node environment variable bug
Work around https://github.com/nodejs/node/pull/18463 by
detecting the conditions under which the bug occurs and
performing a simple operation that resets the error state
if necessary.
2018-01-30 22:02:47 +01:00
Florent Cailhol 7dd41b55c6 Replace deprecated Tapable#apply by Plugin#apply 2017-12-20 11:53:56 +01:00
Florent Cailhol 36c690d37f Use tapable instead of 'plugin' 2017-12-08 14:23:31 +01:00
Tobias Koppers f7c2f8e470 Update code style to arrow functions 2017-11-08 11:56:01 +01:00
Eiríkur Heiðar Nilsson 003cef9625 EnvironmentPlugin: Support empty env variables 2017-03-17 16:37:43 +00:00
Tobias Koppers 45d9959751 Use double quotes 2017-01-11 14:55:49 +01:00
Tobias Koppers c335bcb095 fixup last commit 2017-01-11 09:14:07 +01:00
Tobias Koppers e549660ade check typeof value 2017-01-11 09:13:48 +01:00
Tobias Koppers be40f6da65 change some constructs to ES2015 2017-01-11 09:12:55 +01:00
einarlove 34cf2ac93c Update link to new docs 2017-01-09 23:26:13 +01:00
einarlove 5f5dbd5c95 Use double quotes 2017-01-09 21:48:26 +01:00
Einar Löve 6c8e6a954c Merge branch 'master' into patch-1 2017-01-06 15:40:28 +01:00
Gyandeep Singh ffd3d4e90e refactor(es6): refactor EnvironmentPlugin to ES6 class 2016-12-29 17:40:53 -06:00
einarlove b7bc2cc417 Add missing typeof 2016-12-24 23:52:55 +00:00
einarlove b25ccfc28d Triple-check if value is not undefined 2016-12-24 23:42:11 +00:00
einarlove b8d0917afd Use typeof to check if argument is object 2016-12-24 23:30:38 +00:00
einarlove 57f4b67316 Remove color reset in error message 2016-12-24 23:14:51 +00:00
einarlove 9f30c6e68a Run through beautify 2016-12-24 23:14:42 +00:00
einarlove d7b0f31281 Add plugin name and help intructions to warning message 2016-12-24 23:14:32 +00:00
einarlove 984b2a9000 Add back support for multiple arguments as keys 2016-12-24 23:14:15 +00:00
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