Commit Graph

107 Commits

Author SHA1 Message Date
Tobias Koppers d244ca9458 avoid too frequent progress display
#9460
2019-07-24 22:41:14 +02:00
Tobias Koppers fde3f6298d fix low hanging performance problems with ProgressPlugin
#9460
2019-07-24 22:39:44 +02:00
Tobias Koppers 4283b8b51a
Merge pull request #9312 from webpack/refactor/object-spread
replace Object.assign with object spread
2019-06-21 11:22:00 +02:00
Tobias Koppers ec88b7eddc Merge tag 'v4.35.0' into next
4.35.0
2019-06-21 09:15:49 +02:00
Tobias Koppers b2e7837288 replace Object.assign with object spread 2019-06-19 13:16:05 +02:00
Ben Kucera 7aefa64b0a refactor test, evenly truncate details text, properly handle undefined stderr.columns 2019-06-04 12:33:55 -04:00
Ben Kucera e7c2b7d813 fix progress on line wrap (trim line to stderr.columns) 2019-06-03 18:27:38 -04:00
Florent Cailhol b12f24d20c Update hook types 2019-05-10 09:52:22 +02:00
Tobias Koppers c1e89c0543 Runtime requirement support in NormalModule, Generators and DependencyTemplate 2018-11-29 16:06:12 +01:00
Florent Cailhol 15997e2324 Remove context usage in ProgressPlugin 2018-11-27 08:58:43 +01:00
Tobias Koppers d197b6664a show module count earlier when they are added to the queue 2018-11-05 11:07:35 +01:00
Tobias Koppers b19337e2ad Partial update of #8279, defaults can be changed in a breaking way 2018-11-05 10:28:37 +01:00
Tobias Koppers 8cf1cdb74f Merge tag 'v4.25.0' into next
4.25.0
2018-11-05 10:27:45 +01:00
Tobias Koppers 3d745045a1 add missing hooks to progress 2018-11-04 10:36:47 +01:00
Tobias Koppers 56d8a8f010 prevent writing the same message multiple times to stderr 2018-11-04 10:33:37 +01:00
Tobias Koppers 64e3826067 use flags to show different parts of the progress message
refactor activeModules to Set for performance reasons
2018-11-04 10:33:14 +01:00
Sergey Melyukov aa8cb0fab7 ProgressPlugin: refactoring 2018-10-29 15:49:31 +03:00
Tobias Koppers b4860ccebb refactor chunk id plugins 2018-09-05 14:28:52 +02:00
Tobias Koppers 4d7b5b3b5e Refactor module id plugins to be independent 2018-09-03 20:45:44 +02:00
Tobias Koppers 51a13926ad Merge tag 'v4.17.2' into next
4.17.2
2018-09-03 20:06:19 +02:00
aimergenge 7996883cab
solving outputing unnecessary spaces
`…` is causing terminals like git bash on windows to output unnecessary spaces
2018-08-28 16:09:21 +08:00
Florent Cailhol 7b02084bc5 Replace Basic and Advanced optimzation hooks by stages 2018-08-16 14:10:51 +02:00
Tobias Koppers cf5f1d723c format existing code 2018-07-30 21:29:21 +02:00
Tobias Koppers de16162783
Merge pull request #7442 from elliottsj/after-emit-progress
Allow afterEmit plugins to use `reportProgress`
2018-05-30 22:45:21 +02:00
Spencer Elliott 605064bb2e Add `reportProgress` function to afterEmit hook context 2018-05-30 11:52:47 -07:00
Florent Cailhol faf04e005c Update prettier to v1.13 2018-05-29 16:14:16 +02:00
Jaehwan Moon 737eaa51b6 Fix a bug where ProgressPlugin is not working properly with MultiCompiler 2018-05-11 13:07:31 -04:00
Florent Cailhol 72786beee7 Use ellipsis instead of '...' 2018-03-22 10:54:18 +01:00
Tobias Koppers 5238159d21 run prettier on existing code 2018-02-25 02:00:20 +01:00
Florent Cailhol d4811b0d37 Use for-of loops instead of forEach 2018-01-23 22:53:18 +01:00
Florent Cailhol 7dd41b55c6 Replace deprecated Tapable#apply by Plugin#apply 2017-12-20 11:53:56 +01:00
Tobias Koppers 96d91631f6 remove "pass" from progress plugin
we will eventually replace the optimizing with a loop plugin
2017-12-13 10:09:35 +01:00
Tobias Koppers 6d80065bd0 improve ProgressPlugin 2017-12-12 17:03:37 +01:00
Florent Cailhol 36c690d37f Use tapable instead of 'plugin' 2017-12-08 14:23:31 +01:00
Tobias Koppers 75f68a2635 fixes linting, remove not needed context arguments 2017-11-08 20:49:41 +01:00
Tobias Koppers f7c2f8e470 Update code style to arrow functions 2017-11-08 11:56:01 +01:00
Tobias Koppers f1739f9af9 add new hook to progress 2017-05-28 17:19:48 +02:00
J Huang 94d0641ba4 perf: use Date.now() instead of +new Date()
+new Date() is 2x slower than Date.now(), see https://jsperf.com/new-date-vs-date-now-vs-performance-now/6
2017-05-04 10:19:10 +08:00
Jan-André Zinser 64340c778e Fix ProgressPlugin for multi compiler caused by ES6 refactoring
arguments can not be used within arrow functions
2017-04-02 19:07:30 +02:00
SendilKumar N a9ae64a6c9 Refactor(ES6): Lint fixes 2017-02-22 16:12:24 +08:00
SendilKumar N 3e22f61bf1 Refactor(ES6): ProgressPlugin 2017-02-22 15:57:56 +08:00
Tobias Koppers 8e69a80847 code linting 2017-01-11 12:29:01 +01:00
d-ph 24179916f7 Fix progress indicator erasing too many characters. Fixes #3591
The code was erasing (actually: moving the caret back for) too many characters
because the number of characters to move back was being overwritten
too early.

The bug manifests itself only in Windows Command Prompt via npm script
and only when webpack is run in conjunction with other npm scripts. Linux
terminal is also affected, but apparently is more graceful (doesn't allow the
backspace character to jump to the previous terminal line).
2016-12-27 18:28:45 +00:00
Tushar Sonawane 6b39a5325c fix 'no-inner-declarations' warnings 2016-10-29 19:30:01 +05:30
Tobias Koppers 01cbeae398 beautify and do tests first 2016-01-11 20:09:30 +01:00
Tobias Koppers 46b12b2095 better ProgressPlugin and fixed bug for multi-compilation 2016-01-09 23:48:37 +01:00
Tobias Koppers 75abfd13b6 more details in the progress plugins
changed handler signature to multiple arguments
2016-01-09 23:17:20 +01:00
Lex Vjatkin 01e7a7cb95 JS API: ProgressPlugin default handler
Default handler moved from CLI args parser to plugin itself.
Now you can use ProgressPlugin in JS API without specifying handler.

Resolves webpack/webpack#1000, SRP
2015-12-10 14:06:20 +01:00
Tobias Koppers f7d799adb4 rebeautify without spacing after keyword 2015-07-16 00:19:23 +02:00
Avi Haiat 0a340f2b1a feat(app): Beautify all lib files 2015-07-13 01:20:09 +03:00
Tobias Koppers cebd3b9722 added linting 2015-04-23 23:55:50 +02:00
Tobias Koppers 84d4df203d better progress 2015-02-04 23:22:30 +01:00
Tobias Koppers 1e37053f7e Sorted out some MultiCompiler issues 2014-06-18 23:02:33 +02:00
Tobias Koppers d56dce7e52 more details in progress 2013-10-12 22:40:15 +02:00
Tobias Koppers d85324c9fd profile progress 2013-07-04 11:02:35 +02:00
Tobias Koppers fd7226ed50 fixes 2013-02-04 15:58:04 +01:00
Tobias Koppers ee01837d66 Refactored everything for 0.9 2013-01-30 18:49:25 +01:00