Roman Gusev
c5e197aa67
fix: add type hints
2024-08-28 00:37:17 +02:00
Roman Gusev
d2c7a708d7
docs: update JSDoc types
2024-08-28 00:10:31 +02:00
alexander.akait
adf2a6b7c6
fix: a lot of types
2024-08-06 06:08:48 +03:00
Tobias Koppers
b9c50fdb09
fix jsdoc documentations
2020-04-28 19:42:58 +02:00
logikgate
33fae4eb6c
Modify to be a breaking change as per review
2020-02-07 16:31:44 -05:00
logikgate
101ba648ff
Add options arg to EnvironmentPlugin, fixes #10296
2020-01-23 13:36:20 -05:00
Tobias Koppers
1070ce925b
remove Array.prototype.reduce calls to simplify code
2020-01-17 18:31:29 +01:00
Florent Cailhol
7777b2f6b3
Update EnvironmentPlugin TODO comment
2018-10-12 18:03:03 +02:00
Tobias Koppers
c21d59f783
Merge tag 'v4.17.0' into next
...
4.17.0
2018-08-21 11:02:16 +02:00
Mihail Bodrov
1f954b4f12
Get rid typeof undef in all lib
2018-08-21 03:26:50 +03:00
Tobias Koppers
cf5f1d723c
format existing code
2018-07-30 21:29:21 +02:00
Sean Larkin
2d9db1a1f6
chore(types): add types to EnvironmentPlugin
2018-07-08 08:15:02 +01:00
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