perf-module-webpack-plugin

1.0.1 • Public • Published

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 

Usage

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

Dependencies (0)

    Dev Dependencies (20)

    Package Sidebar

    Install

    npm i perf-module-webpack-plugin

    Weekly Downloads

    2

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    534 kB

    Total Files

    10

    Last publish

    Collaborators

    • happybang