Sponsor webpack and get apparel from the official shop! All proceeds go to our open collective!
Generate Chrome profile file which includes timings of plugins execution. Outputs events.json
file by default. It is possible to provide custom file path using outputPath
option.
outputPath
: A relative path to a custom output file (json)new webpack.debug.ProfilingPlugin();
outputPath
new webpack.debug.ProfilingPlugin({
outputPath: 'profiling/profileEvents.json'
});
In order to view the profile file:
ProfilingPlugin
.Performance
tab (formerly Timeline
).events.json
by default) into the profiler.It will then display timeline stats and calls per plugin!