perf-module-webpack-plugin
v1.0.1
Published
perf-module-webpack-plugin
Downloads
5
Readme
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.
it runs with dev server for it injects code at runtime will useless in prod;
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
})
]
}