Webpack 中文文档(v4.15.1) 目录

webpack ProfilingPlugin

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.

Options

  • outputPath: A relative path to a custom output file (json)

Usage: default

--- -------------------------------

Usage: custom outputPath

--- -------------------------------
  ----------- ------------------------------
--

In order to view the profile file:

  • Run webpack with ProfilingPlugin.
  • Go to Chrome, open the Profile Tab.
  • Drag and drop generated file (events.json by default) into the profiler.

It will then display timeline stats and calls per plugin!


上一篇:PrefetchPlugin
下一篇:ProvidePlugin