Commit Graph

217 Commits

Author SHA1 Message Date
Tobias Koppers 758269e814 add emit/updateAsset to Compilation
add asset info with
* immutable for long term cache-able asset
* size for the asset size in bytes
* development for devtools
* hotModuleReplacement for HMR assets

show asset info in stats
2019-09-11 14:43:42 +02:00
Tobias Koppers 8f0a443e6c Colored console for node environment
Status report in logger
ProgressPlugins uses logger
2019-08-01 13:51:18 +02:00
Tobias Koppers 677ccd90ea small fixes 2019-07-23 09:28:06 +02:00
Tobias Koppers 7b31890a2f more tests
add none as loglevel
2019-07-22 10:35:26 +02:00
Tobias Koppers d532c4f24f allow to configure the infrastructure logger
rename includeDebugLogging to loggingDebug
rename logToConsole to createConsoleLogger
2019-07-22 09:22:36 +02:00
Tobias Koppers 183ddad98e store profiling requests into the Stats too 2019-07-22 08:19:30 +02:00
Tobias Koppers c24d5601dc enable info log level by default 2019-07-19 18:19:04 +02:00
Tobias Koppers 42a9bfd225 improve logging options and display
allow more logging options in schema
collapse groups in non-verbose logging
show number of filtered logging lines
update stats presets for logging
2019-07-19 11:59:48 +02:00
Tobias Koppers d849160d3f add logging API
Plugins:
Compiler.getInfrastructureLogger(name)
Compilation.getLogger(name)

Loader:
this.getLogger([name])

API equal to console API with these methods:
error, warn, info, log, debug,
time, timeLog, timeEnd,
group, groupCollapsed, groupEnd,
profile, profileEnd,
clear
2019-07-18 17:13:40 +02:00
Antoni Silvestrovič cb3e6f3cf6
Preset option for errors & warnings only 2019-03-15 13:02:39 +00:00
Tobias Koppers b25ff237bb Prettify source code 2019-02-05 10:08:45 +01:00
Tobias Koppers aaf85dbd1c add output.futureEmitAssets
add a new version of emitting assets which allows to free memory of Sources with the trade-off of disallowing reading asset content after emitting

It also uses Source.buffer when available.
2019-01-17 13:33:27 +01:00
Tobias Koppers 98d077d0b6 order values with different types correctly 2018-10-24 15:45:08 +02:00
Tobias Koppers 3217d02aab make stats assets order stable by providing a default order 2018-10-19 12:57:25 +02:00
Tobias Koppers 8a8111b637 make sorting in Stats stable 2018-10-19 12:57:23 +02:00
Tobias Koppers 511d15bbc4 make origins sorting deterministic
remove duplicate origins
2018-10-19 12:57:22 +02:00
Mihail Bodrov 1f954b4f12 Get rid typeof undef in all lib 2018-08-21 03:26:50 +03:00
Tobias Koppers dcd644253f
remove comment 2018-07-20 09:28:48 +02:00
Tobias Koppers e80d49445c fix sorting of reasons 2018-07-19 19:44:44 +02:00
Tobias Koppers 692faf2e45 sort ids in Stats numerical 2018-07-10 11:32:45 +02:00
Tobias Koppers ad8f496745 arrow functions, remove or improve eslint-disable comments 2018-06-27 13:48:13 +02:00
Tobias Koppers 53103a9690 Cleanup error location and origin information 2018-06-04 10:35:46 +02:00
Florent Cailhol 2a9452e51b Add brackets for multiline if/for statements 2018-05-29 15:45:44 +02:00
Tobias Koppers 351c9936e6 fixup reasons when redirecting dependencies for side-effects
show reason explanation in stats

fixes #7428
2018-05-29 14:12:31 +02:00
Tobias Koppers ec83e8ea9b
Merge pull request #7129 from webpack/deps/in-range
Upgrade dependencies in range
2018-04-27 07:45:33 +02:00
Tobias Koppers d91caea860 Pretty files for updated prettier version 2018-04-26 20:14:45 +02:00
SlavaB 71a12c8bc1 Add tests for namedChunkGroups 2018-04-24 19:01:02 +03:00
SlavaB 9ea19997c8 Rename stats chunk groups property 2018-04-22 14:57:45 +03:00
SlavaB a95f4144fa Add assets by chunk groups to stats JSON 2018-04-21 14:20:23 +03:00
Tobias Koppers 873d7d442a show preload and prefetch in stats 2018-04-17 08:56:40 +02:00
Tobias Koppers 17eb5b4700 rename priority to order 2018-04-16 18:00:34 +02:00
Tobias Koppers 9cb1a66317 add support for link preload/prefetch
`import(/* webpackPrefetchPriority: 10 */ "...")`
`import(/* webpackPreloadPriority: 10 */ "...")`
2018-04-16 11:29:25 +02:00
Tobias Koppers 0b1e9d8e09
Merge pull request #6982 from mohsen1/json-and-date-api-fixes
JSON and Date API usage fixes
2018-04-11 16:42:15 +02:00
Florent Cailhol 37ff424dd9
Pass undefined as locale 2018-04-10 21:32:12 +02:00
Florent Cailhol a9a3361027 Change stats wording when all exports are used 2018-04-10 09:13:58 +02:00
Mohsen Azimi 068ad7f2e5
pretty 2018-04-07 18:19:31 -07:00
Mohsen Azimi 839892c8a2
JSON and Date API usage fixes 2018-04-07 18:17:23 -07:00
Tobias Koppers c1a3676a80
Merge pull request #6944 from webpack/feature/stats-string-output
align stats string output to max length
2018-04-04 18:50:07 +02:00
Tobias Koppers 27d76683a3 align stats string output to max length 2018-04-04 14:40:34 +02:00
Tobias Koppers 45e7f7a2cb
Merge pull request #6878 from rchaser53/fix-options-loader-error
emit correct path when using loader in options
2018-04-04 14:33:43 +02:00
rchaser53 65aa1c0928 format the file path in the error message 2018-03-29 20:58:38 +09:00
Mohsen Azimi 6fa6720abc
Intialize start and end time as undefined in Stats 2018-03-28 21:49:00 -07:00
byzyk 0f65643a42 fix: wrap bool with function to pass tests 2018-03-14 11:12:01 +04:00
byzyk 13b80be3ba fix: make excludeModules accept booleans 2018-03-14 09:52:16 +04:00
Tobias Koppers edbb6f64bd
Merge pull request #6670 from SimenB/patch-1
Use 2-digit format for day and month in "built at" output
2018-03-06 15:10:39 +01:00
Clark Du 23208a311c
Show plural if assets are more than one 2018-03-05 17:12:40 +08:00
Simen Bekkhus bb2320cf13
Update Stats.js 2018-03-05 08:41:07 +01:00
Clark Du 81235e1331 Add stats.moduleAssets to show assets inside modules in the Stats 2018-03-04 13:39:05 +08:00
Clark Du b8155970db
fix: module assets is in buildInfo 2018-03-02 02:17:46 +08:00
Josh Soref ecc7fd2fe5 spelling: suppressed 2018-02-26 02:49:06 +00:00