Generate Chrome profile file which includes timings of plugins execution. Outputsevents.json file by default. It is possible to provide custom file path usingoutputPath option.
Note : ProfilingPlugin accepts only absolute paths.
outputPath: An absolute path to a custom output file (json)newwebpack.debug.ProfilingPlugin();outputPathnewwebpack.debug.ProfilingPlugin({ outputPath: path.join(__dirname,'profiling/profileEvents.json'),});In order to view the profile file:
ProfilingPlugin.Performance tab (formerlyTimeline).events.json by default) into the profiler.It will then display timeline stats and calls per plugin!