Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 940 Bytes

File metadata and controls

31 lines (22 loc) · 940 Bytes

perf-module-webpack-plugin

Scope

the plugin computing time of all the modules bundled by webpack,and show the list of the top N modules who cost self execting. webpack require

it runs with dev server for it injects code at runtime will useless in prod; webpack require

Install

npm i perf-module-webpack-plugin --save 

webpack.dev.conf

const perfModuleWebpackPlugin =require("perf-module-webpack-plugin");
module.exports = {
  plugins:[
    new perfModuleWebpackPlugin({
        url:"http://exp.smfe.sina.cn/service/addPerf"// report server(post、cors),defalut null
      })
  ]
}