Skip to content

SinaMFE/perf-module-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
      })
  ]
}

About

record the perf of modules self executing time

Resources

Stars

Watchers

Forks

Packages

No packages published