Leon Weidauer
152575c2b0
Fix Stats and BinTestCases after adding "Built at"
...
In order to pass the tests, a similar
test replacement as with the millisecond values
needs to happen.
For the "Built at" stat all dates are replaces with
Thu Jan 01 1970 00:00:00 GMT.
Related to issue #5305
add semicolon
2018-01-29 19:51:49 -08:00
Kunall Banerjee
5cc55d8912
Add built at time to webpack output
2018-01-29 15:00:14 -08:00
Connor Clark
7de55c8e8c
Use builtAt time instead of current time for stats logging
2018-01-29 14:59:49 -08:00
Connor Clark
56d22e9917
Use builtAt time instead of current time for stats logging
2018-01-29 14:59:13 -08:00
Leon Weidauer
09f959c684
Fix Stats and BinTestCases after adding "Built at"
...
In order to pass the tests, a similar
test replacement as with the millisecond values
needs to happen.
For the "Built at" stat all dates are replaces with
Thu Jan 01 1970 00:00:00 GMT.
Related to issue #5305
2018-01-29 14:59:13 -08:00
Kunall Banerjee
795a8ed4b2
Add built at time to webpack output
2018-01-29 14:59:13 -08:00
Tobias Koppers
7a1b357aad
Merge branch 'next' into for_of_loops
2018-01-24 09:01:31 +01:00
Florent Cailhol
d4811b0d37
Use for-of loops instead of forEach
2018-01-23 22:53:18 +01:00
Florent Cailhol
77bb4c0055
Deprecate forEach* and map* methods
2018-01-23 22:19:59 +01:00
Tobias Koppers
ea609374f7
split Chunk.isInitial into isOnlyInitial and canBeInitial
...
remove includeInitial argument of getChunk(Module)Maps
2018-01-22 12:52:28 +01:00
Tobias Koppers
18ae73dad4
Refactor chunk graph
...
Chunks are now always in ChunkGroups
ChunkGroups have parents and children, Chunks no longer have this
AsyncDependenciesBlocks point to a ChunkGroup instead of a list of chunks
Entrypoint is now a ChunkGroup (extends from it)
move stuff graph modification methods into GraphHelpers
Change chunk id recording to source-based
Chunks have parents, siblings and children in Stats
rename AutomaticCommonsChunksPlugin to SplitChunksPlugin
add request property to origin (ChunkGroup)
remove moveToParent from AggressiveMergingPlugin
fix issues with AggressiveSplittingPlugin
remove CommonsChunkPlugin
add optimization.runtimeChunk (RuntimeChunkPlugin)
fix a filename bug for initial chunks
remove extract-text-webpack-plugin from test suite
add DebugHash to help debugging hash issues
fix issues with entry modules in different chunk as runtime
redo optimization.splitChunks options
Compilation.entrypoints is now a Map
Compilation.chunkGroups has been added
remove some unittests
update examples
update tests with CommonsChunkPlugin
2018-01-19 19:21:30 +01:00
Tobias Koppers
7112943ca4
Merge pull request #6298 from EugeneHlushko/refactor/indexof-to-includes
...
Refactor/indexof to includes
2018-01-11 22:45:02 +01:00
EugeneHlushko
2aab060f26
Refactor: indexOf >< checks to includes
2018-01-11 18:58:39 +02:00
Tobias Koppers
b34663cb2d
add more config options
...
fix bugs
2018-01-10 18:58:27 +01:00
Tobias Koppers
bf898c08c4
show entrypoints by default
2018-01-09 22:55:36 +01:00
Tobias Koppers
45f8a28b44
Merge branch 'master' into next
...
# Conflicts:
# lib/JsonpMainTemplatePlugin.js
# lib/NoEmitOnErrorsPlugin.js
2018-01-04 20:59:34 +01:00
Mike Greiling
a9c0bfdb1b
ensure hasErrors() and hasWarnings() check child compilations as well
2017-12-22 00:10:47 -06:00
Tobias Koppers
ba00d7495a
fix unnecessary module concatenation
...
allow to display nested modules in stats
2017-12-20 20:35:16 +01:00
Tobias Koppers
2378bfea6c
fix Stats output for no exports
2017-12-14 10:57:33 +01:00
Tobias Koppers
c68f224272
move providedExports into buildMeta
2017-12-12 17:01:03 +01:00
Tobias Koppers
ffb977fed4
refactor meta -> buildMeta, add factoryMeta
...
add compat layer to Module.meta
2017-12-12 16:57:50 +01:00
Tobias Koppers
7d87f34269
Only create one RequestShortener per Compiler
...
move Compiler.context assignment into Compiler
2017-12-04 12:23:42 +01:00
Tobias Koppers
d249016aba
Don't emit duplicate module names in stats
2017-11-24 08:03:22 +01:00
Tobias Koppers
f7c2f8e470
Update code style to arrow functions
2017-11-08 11:56:01 +01:00
Tobias Koppers
0339d4da49
Refactor weird things
...
* Declare used properties in constructor
* Module.(re)building moved into Compilation._(re)buildingModules (Map)
* Make NormalModule.error private
* Move Module.cacheable logic into needRebuild
* More stable implemention of rebuildModule
* addModuleChain waits for Module building finished before returning
* Set built and cacheable flags correctly in Modules
* More portableId into WeakMap
* Add ModuleReason for entrypoints
* cacheable can be true/false/null in Stats
* added Stats module issuerPath
* fixes profile in stats output
2017-11-06 13:16:09 +01:00
Tobias Koppers
82f42e2c67
Merge branch 'master' into next
2017-10-17 12:38:38 +02:00
Tobias Koppers
b597322e3c
fix behavior and add a warning when trying to load an
...
initial chunk on demand
2017-10-17 09:06:05 +02:00
Tobias Koppers
814c894168
Merge branch 'master' into next
...
# Conflicts:
# lib/optimize/CommonsChunkPlugin.js
# test/statsCases/limit-chunk-count-plugin/expected.txt
# test/statsCases/named-chunks-plugin-async/expected.txt
# test/statsCases/optimize-chunks/expected.txt
2017-10-16 10:47:17 +02:00
Joe Bottigliero
33223aa3d4
[ #4886 ] --env output
...
- Adds stats.env to enable the out put of --env arguments passed to the webpack configuration.
2017-10-11 20:37:30 -05:00
Tobias Koppers
b316bee0a6
Use SortableSets for Chunk.parents/blocks
2017-09-22 16:38:47 +02:00
Tobias Koppers
7fe03718f2
display better message, instead of empty list
2017-08-02 23:45:02 +02:00
Ricky Lippmann
05f7b2d5b7
Add excludeModules and allow multiple options as fallbackchain.
2017-07-27 18:33:10 +02:00
Ricky Lippmann
d1b3b4f8b9
Moved hidden assets message out of the assets table.
2017-07-27 10:11:58 +02:00
Ricky Lippmann
a3d556782d
Add notification for hidden assets.
2017-07-26 16:03:06 +02:00
Ricky Lippmann
c9cbaf04e7
Fix linting issues
2017-07-26 14:22:47 +02:00
Ricky Lippmann
82217992b7
Add new option "excludeAssets" to Stats
2017-07-26 11:46:31 +02:00
Tobias Koppers
838d416874
Merge branch 'master' into deps/extract-text-webpack-plugin
2017-07-24 14:16:05 +02:00
Tobias Koppers
7d5916c50e
make child names relative
2017-07-24 13:28:33 +02:00
Tobias Koppers
991b360c90
fix useless-escape linting issues
2017-07-24 11:54:06 +02:00
Tobias Koppers
b9adfaaf76
rewrite code which uses unshift to push
2017-07-18 20:46:59 +02:00
Tobias Koppers
d6a7594d38
harmony modules without exports have no exports instead of unknown
2017-06-14 22:46:10 +02:00
Tobias Koppers
6058483d74
default chunk modules in Stats to true
2017-06-09 15:05:38 +02:00
Tobias Koppers
0f16dd95b1
fixes incorrect CLI stats output
...
add "detailed" preset
clean up presets to do more useful stuff
fixes #4141
fixes #4118
2017-06-01 15:03:26 +02:00
Tobias Koppers
8b81788a73
fixes for stats
2017-05-28 19:20:17 +02:00
Tobias Koppers
d8539561fd
add optimization bailout info
...
track optimization bailout in concat plugin
2017-05-28 15:25:07 +02:00
Tobias Koppers
2bd2d2844c
improve a few issues
...
from review by @Kovensky
2017-05-20 14:54:42 +02:00
Tobias Koppers
8d3efe7d63
Merge branch 'next' into perf/modules-set
2017-05-16 14:37:03 +02:00
Tobias Koppers
e1bac32c19
Use a Set to store modules in a chunk
2017-05-16 11:50:50 +02:00
Even Alander
41310135bb
rename stats.stackTrace to stats.moduleTrace
2017-04-28 09:20:14 +02:00
Even Alander
7e4310a175
add option to lib/Stats.js to disable stack trace on errors and warnings
2017-04-27 10:22:20 +02:00
Tobias Koppers
e8bc9c2b3b
use a Set for Module.chunks
2017-04-18 23:27:25 +02:00
e-cloud
52055ba07e
refactor: dead code elimination
...
remove those code not defined but used;
remove unused code
2017-04-11 19:43:05 +08:00
Tim Sebastian
8e93875e61
filter warnings in `toJson` to also filter output for --json flag
2017-02-28 23:16:02 +11:00
Tim Sebastian
45501ce0fc
allow to suppress warnings based on string/regexp/function "warningsFilter" flag in stats
2017-02-25 15:54:47 +11:00
Tim Sebastian
8c57db30c5
Allow to reverse sort order in Stats by prefixing the sort key with a "!"
2017-02-07 21:17:20 +11:00
Tim Sebastian
fad4021890
rename `d` to a readable name
2017-02-07 20:42:36 +11:00
Tim Sebastian
ebc8b8b429
readd handling keys with "!" as first char
2017-02-06 21:40:06 +11:00
Tim Sebastian
a72eab8e45
change sortByField to prevent deadlock
...
- returning a function fails the linter as it wants `return()=>` without space
- removing the space fails eslint
2017-02-05 13:09:56 +11:00
Tim Sebastian
79a36a66ff
make use of the block scoping nature of let
2017-02-05 12:20:23 +11:00
Tim Sebastian
424a0aead9
the first "if" part always gets override by the default, is that intended @sokra?
2017-02-05 12:20:23 +11:00
Tim Sebastian
dd2aec72e1
avoid let in Stats
2017-02-05 12:20:22 +11:00
Sean Larkin
aa90166ebc
Merge pull request #3524 from webpack/bugfix/fix_stats_when_passed_array
...
fix(stats): allow stats to respect array of configs, also bump deps.
2017-01-11 09:15:42 -06:00
Tobias Koppers
f1d56dcc74
add support for multiple different stats objects
2017-01-11 14:37:47 +01:00
Tobias Koppers
8e69a80847
code linting
2017-01-11 12:29:01 +01:00
Sean Larkin
225994b607
Remove bad stats merge
2017-01-10 10:53:41 -06:00
Sean Larkin
03d37489fe
Merge branch 'master' into bugfix/fix_stats_when_passed_array
2017-01-10 10:27:29 -06:00
Tobias Koppers
9380bd4c12
Bugfix/disable module in harmony ( #3755 )
...
* moved format location into separate file
allow dependencies to report errors too
* NullDependencies do not change the hash
* dependencies can opt-out from `__webpack_require__` param
* apply module syntax plugins earlier
* emit errors if using AMD or CommonJS syntax in harmony modules
2017-01-09 10:11:34 -06:00
Will Mendes
b7c1b5c672
refactor(ES6): upgrade Stats to ES6 ( #3724 )
2017-01-04 11:24:55 -06:00
Sean Larkin
9014901b9c
Merge branch 'master' into bugfix/fix_stats_when_passed_array
2016-12-29 14:34:02 -06:00
Tobias Koppers
71cf49a259
add depth to module
...
add depth to stats
fix stats spacing (fixes #3541 )
add maxModules to stats, default to 15 (fixes #3540 )
2016-12-21 18:03:20 +01:00
Sean Larkin
a4106ea98f
fix(stats): allow stats to respect config for MultiCompiler, MultiStats
2016-12-19 16:53:30 -06:00
Tobias Koppers
d08c9b180e
flag entrypoint in stats too
2016-12-14 11:50:44 +01:00
Tobias Koppers
37b7474651
Refactoring, make options simpler
...
breaking change: performance options changed
2016-12-14 11:33:57 +01:00
Tobias Koppers
3dfab1053b
beautify
2016-12-07 17:22:21 +01:00
Sean Larkin
44f6f07ec2
chore(performance): cleanup logic errors, reformat test expects with new colomn [big] format if empty
2016-12-07 17:22:20 +01:00
Sean Larkin
c6850b3481
chore(performance): cleaned up unused variables, removed compilation from constructor, added stats additional messages
2016-12-07 17:22:20 +01:00
Sean Larkin
1f9e1a69c6
chore(performance): extract formatSize to helper class, make stats table more reusable
2016-12-07 17:22:19 +01:00
Sean Larkin
23a127b1a4
chore(performance): make table format more consistent for asset headers in Stats
2016-12-07 17:22:18 +01:00
Sean Larkin
93ae6bc32a
chore(performance) cleanup unused functionality, partial cleanup
2016-12-07 17:22:18 +01:00
Sean Larkin
0833c59f46
feat(performance): removed logic out of stats and into plugin for assets over size limit
2016-12-07 17:22:17 +01:00
Sean Larkin
b2622e1bd9
fix(performance): corrected tests, removed options access from stats, added mocks for web target check
2016-12-07 17:22:14 +01:00
Sean Larkin
000dae1889
fix(tests): Updated tests across the board to work with perf budgets
2016-12-07 17:22:13 +01:00
Sean Larkin
e360c8b7c8
fix(test): update test, fix asset type case, and formatting
2016-12-07 17:21:27 +01:00
Sean Larkin
2741098198
feat(perfbudget): creat initialAssetsCost with hardcoded limit
2016-12-07 17:21:22 +01:00
Sean Larkin
e949aa1512
feat(perfbudgets): fixed issues with bad asset checking, and formatting
2016-12-07 17:21:22 +01:00
Vignesh Shanmugam
0084071dac
fix value on the asset stats
2016-12-07 17:21:21 +01:00
Vignesh Shanmugam
7736ebe367
Add color information to stats based on bundle size
2016-12-07 17:21:20 +01:00
Sean Larkin
52bfdab526
feat(perf): added initial setup for perf plugins, need to configure test cases and stats output based on perf props
2016-12-07 17:21:17 +01:00
Yuriy Ostapenko
76e10f3559
Do not exclude module from stats when loader path matches "exclude" filter (unhide module)
2016-11-28 14:36:39 +01:00
Tobias Koppers
ac340bce1d
improved and fixed stats
2016-09-09 14:19:36 +02:00
Tobias Koppers
b24bbdcf22
add providedExports to stats
2016-09-07 09:46:39 +02:00
Tobias Koppers
2f618e733a
refactoring and aggressive-splitting plugin
2016-07-13 11:03:14 +02:00
Tobias Koppers
1ee3585fa1
compilation error don't affect parent module
...
recover after syntax error
assume es6 module on syntax error
#2117
2016-07-03 13:13:01 +02:00
Tobias Koppers
78307a937f
allow to display used exports
...
support Tree Shaking with import *
fixes #2713
2016-06-29 01:17:59 +02:00
Kenny Tran
eebc5ceaf6
Fix no-redeclare in code
2016-01-18 18:57:42 -08:00
Kuzya
33356f65ba
fix code styling to pass tests
2015-11-14 01:05:20 +03:00
Alexander Kuznetsov
dcb0cf7af3
Configurable stats colors
...
Default colors may not look good with some terminal color settings, so this patch allows to setup stats colors explicitly:
```
var config = {
stats: {
colors: {
yellow: '\u001b[33m',
green: '\u001b[32m'
}
}
}
```
`colors: true` will use default colors.
2015-11-09 13:33:32 +03:00
Tobias Koppers
44f919ecc7
Merge branch 'master' into webpack-2
...
Conflicts:
test/statsCases/chunks/expected.txtT
2015-08-08 09:40:35 +02:00
Tobias Koppers
8f44bc3e7b
fixed a bug with incorrect ordering of index and index2
...
this caused incorrect order of rules in extracted css
expose index and index2 to the stats
2015-08-06 13:22:46 +02:00
Juan Lomán
ce789e21d3
Appveyor timed out again
2015-08-03 05:15:08 -05:00
Juan Lomán
d9dd39aeae
Trim trailing whitespace aided by editorconfig
2015-08-03 04:46:29 -05:00
Juan Lomán
ae0879aac9
Appveyor weirdness
2015-08-03 04:42:50 -05:00
Juan Lomán
be2c668b4a
Appveyor beautify-check compliance
2015-08-03 04:26:46 -05:00
Juan Lomán
7e58665917
Add stats config presets.
...
`stats.toJson` and `stats.toString` now accept string/boolean values: `none` (or false), `errors-only`, `minimal`, `normal` (or true), `verbose`. A new static function was added: `Stats.presetToOptions(name)`, returns the options object from a preset name.
2015-08-03 04:01:29 -05:00
Tobias Koppers
431a4c791c
Merge branch 'master' into webpack-2
...
Conflicts:
hot/dev-server.js
hot/only-dev-server.js
hot/poll.js
hot/signal.js
lib/ChunkTemplate.js
lib/HotModuleReplacement.runtime.js
lib/HotModuleReplacementPlugin.js
lib/JsonpMainTemplatePlugin.js
lib/MainTemplate.js
lib/NormalModule.js
lib/Parser.js
lib/RecordIdsPlugin.js
lib/WebpackOptionsApply.js
lib/dependencies/RequireEnsureDependency.js
lib/node/OldNodeWatchFileSystem.js
lib/optimize/OccurrenceOrderPlugin.js
package.json
2015-07-17 09:30:37 +02:00
Tobias Koppers
5cd6e7d0b3
fixed a few linting issues
2015-07-16 00:39:56 +02: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
cf30eeeb0f
Merge branch 'master' into webpack-2
...
Conflicts:
lib/ChunkTemplate.js
lib/Compilation.js
lib/HotModuleReplacement.runtime.js
test/TestCases.test.js
test/statsCases/chunks/expected.txt
test/statsCases/simple-more-info/expected.txt
test/statsCases/simple/expected.txt
2015-07-01 00:44:17 +02:00
Tobias Koppers
02522f11c3
throw an error when trying to use [chunkhash]
...
... when it's not allowed.
I. e. with HMR enabled [chunkhash] for the entry chunk
is not allowed. Now it throws an error.
Also fixes a bug where [chunkhash] doesn't have to correct
length. fixes #1192
2015-06-27 11:34:17 +02:00
Tobias Koppers
66df34688e
Merge branch 'master' into webpack-2
...
Conflicts:
bin/convert-argv.js
lib/webpack.js
2015-06-07 22:24:03 +02:00
Nick McCready
64ef3176cd
Stats error reporting catches string errors. Some plugins appear to not obey the rules on error reporting. However this makes debuging a nightmare for users. Therefore the string should be allowed.
2015-06-05 13:35:54 -04:00
Tobias Koppers
20fe1ed007
Show time when zero
2015-05-23 13:05:08 +02:00
Tobias Koppers
ff7848369a
Merge branch 'master' into webpack-2
...
Conflicts:
bin/webpack.js
package.json
2015-05-10 20:41:04 +02:00
Tobias Koppers
d3a7994e35
expose `loc` for every Dependency
2015-05-10 18:31:58 +02:00
Tobias Koppers
f4b9d5f57a
Merge branch 'master' into webpack-2
...
Conflicts:
lib/Compilation.js
lib/Compiler.js
lib/DefinePlugin.js
lib/HotModuleReplacementPlugin.js
lib/Parser.js
lib/node/NodeSourcePlugin.js
lib/node/OldNodeWatchFileSystem.js
package.json
2015-04-27 20:22:13 +02:00
Tobias Koppers
cebd3b9722
added linting
2015-04-23 23:55:50 +02:00
Tobias Koppers
9c26ffe6a8
Merge branch 'master' into webpack-2
...
Conflicts:
lib/Stats.js
2015-04-20 21:08:42 +02:00
Tobias Koppers
9b0233efdf
fixed #991
2015-04-20 20:31:24 +02:00
Tobias Koppers
d9509e8e8d
add publicPath to stats
2015-04-17 10:17:10 +02:00
Tobias Koppers
ab149eb4d4
Merge branch 'hot-multi-pass' of https://github.com/webpack/webpack.git into webpack-2
...
Conflicts:
lib/Compilation.js
2015-03-05 22:30:24 +01:00
hkal
62d87e20b1
Improve size output readability
...
* abbreviate bytes with appropriate multiples
2015-03-04 00:18:44 -05:00
Tobias Koppers
fb49376f6d
Added multi pass hot mode #669
2015-01-30 00:46:52 +01:00
Tobias Koppers
adfcfce15f
watching of missing files, fixed #668
...
store missing files from errors for missingDependencies
make the new watching plugins default
added OldWatchingPlugin
2015-01-17 21:55:44 +01:00
Tobias Koppers
544c368ea1
added support for an async commons chunk, tests and examples
2015-01-11 23:15:11 +01:00
Tobias Koppers
4b5e7339f4
chunkHash in stats output
...
fixed #647
2014-12-31 13:42:05 +01:00
Tobias Koppers
992231a1c8
added `exclude` option to stats
...
added `--display-exclude` and `--display-modules`
exclude common package manager folders by default
fixes #473
2014-09-15 11:46:33 +02:00
Tobias Koppers
764c139ae1
added `cachedAssets` stats option
...
fixes webpack/webpack-dev-middleware#17
2014-08-28 11:04:48 +02:00
Christoffer Wolgast
ab630347ad
Make stats version output configurable
2014-08-01 15:19:15 +02:00
Tobias Koppers
ab2c02ac25
nicer looking stats
2014-07-23 14:41:54 +02:00
Tobias Koppers
829e3f549d
assetsByChunkName should be an array for multiple assets
...
fixes #351
2014-07-09 13:37:06 +02:00
Tobias Koppers
b3a7013550
fixed [optional] output
2014-07-09 13:13:02 +02:00
Tobias Koppers
5104661855
optional externals
...
track optional modules
optional externals for UMD and root
fixes #339
2014-07-03 00:00:06 +02:00
Tobias Koppers
d80cdcefac
Code Quality
2014-06-24 18:53:32 +02:00
Tobias Koppers
44bb43854f
Added experimental MultiCompiler
...
webpack(...) takes an array
support an array in webpack.config.js
2014-06-11 22:26:50 +02:00
Tobias Koppers
a8c7dc26d9
fixed some issues
2014-06-02 21:26:57 +02:00
Eric Eldredge
ebda431399
Add assets to module stats
2014-05-21 11:51:08 -04:00
Tobias Koppers
0467f4b00a
added newline after each child stats
2014-04-18 14:58:57 +02:00
Tobias Koppers
59321874df
give information about chunk name to asset mapping
2014-03-31 08:46:04 +02:00
Tobias Koppers
dba4ecd4b4
more info for in stats
...
for analyse tool
2014-02-24 15:07:15 +01:00
Tobias Koppers
ad02d3c630
sorted out a little bug
2014-02-14 10:07:42 +01:00
Tobias Koppers
5f856ec3b3
add moduleId to stats
2014-02-11 08:32:18 +01:00
Tobias Koppers
30f954067c
track chunk origin
2014-01-23 15:31:40 +01:00
Tobias Koppers
b6a1c40545
show error details
2014-01-21 16:24:17 +01:00
Tobias Koppers
6b011bccfd
sort reasons in stats
2013-10-31 00:38:10 +01:00
Tobias Koppers
52b40b3798
allow loaders to load modules
...
fixed templates readable name
2013-10-28 16:21:29 +01:00
Tobias Koppers
58586f8ae2
make it webpack-able
2013-07-10 23:20:07 +02:00
Tobias Koppers
c30f16f439
added experimental deduplication support #47
2013-06-12 16:16:06 +02:00
Tobias Koppers
e5814dd9d0
display reasons on failed modules (second try) webpack/raw-loader#1
2013-05-21 01:47:22 +02:00
Tobias Koppers
1133a5606e
better error reporting
2013-05-18 14:42:11 +02:00