1.0.1 • Published 5 years ago

perf-module-webpack-plugin v1.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

perf-module-webpack-plugin

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

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