File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -521,11 +521,13 @@ NODE_OPTIONS="--max-old-space-size=4096 -r /path/to/preload/file.js" webpack
521
521
522
522
## Environment Variables
523
523
524
- | Environment Variable | Description |
525
- | -------------------- | -------------------------------------------- |
526
- | ` WEBPACK_SERVE ` | ` true ` if ` serve\|s ` is being used. |
527
- | ` WEBPACK_BUILD ` | ` true ` if ` build\|bundle\|b ` is being used. |
528
- | ` WEBPACK_WATCH ` | ` true ` if ` --watch\|watch\|w ` is being used. |
524
+ | Environment Variable | Description | Available in ` env ` |
525
+ | ------------------------------- | ------------------------------------------------------------------- | ------------------ |
526
+ | ` WEBPACK_SERVE ` | ` true ` if ` serve\|s ` is being used. | yes |
527
+ | ` WEBPACK_BUILD ` | ` true ` if ` build\|bundle\|b ` is being used. | yes |
528
+ | ` WEBPACK_WATCH ` | ` true ` if ` --watch\|watch\|w ` is being used. | yes |
529
+ | ` WEBPACK_PACKAGE ` | Use a custom webpack version in CLI | no |
530
+ | ` WEBPACK_CLI_SKIP_IMPORT_LOCAL ` | when ` true ` it will skip using the local instance of ` webpack-cli ` . | no |
529
531
530
532
You can use the above environment variables inside your webpack configuration:
531
533
You can’t perform that action at this time.
0 commit comments