stats-webpack-plugin

Write the stats of a build to a file.

MIT 19 个版本
安装
npm install stats-webpack-plugin
yarn add stats-webpack-plugin
pnpm add stats-webpack-plugin
bun add stats-webpack-plugin
README

Stats plugin for webpack Version Build Status Dependency Status

Writes the stats of a build to a file.

Installation

$ npm install --save-dev stats-webpack-plugin

Usage

var StatsPlugin = require('stats-webpack-plugin');

module.exports = {
  plugins: [
    new StatsPlugin('stats.json', {
      chunkModules: true,
      exclude: [/node_modules[\\\/]react/]
    })
  ]
};

Give webpack the --profile flag or set profile: true in webpack.config to get detailed timing measurements. See Webpack Profiling for more detail.

API

new StatsPlugin(path: string, [options])
  • path: The path of the result file, relative to your output folder.
  • options: Options passed to stats.toJson

Meta

Contributors

License

Copyright (c) 2014 Daniel Perez Alvarez (unindented.org). This is free software, and may be redistributed under the terms specified in the LICENSE file.

版本列表
0.7.0 2018-08-28
0.6.2 2018-01-18
0.6.1 2017-06-18
0.6.0 2017-03-26
0.5.0 2017-03-02
0.4.3 2017-01-12
0.4.2 2016-08-12
0.4.1 2016-08-08
0.4.0 2016-07-05
0.3.1 2016-02-21
0.3.0 2016-01-11
0.2.2 2015-10-01
0.2.1 2015-07-06
0.2.0 2015-07-06
0.1.2 2015-06-06
0.1.1 2015-06-06
0.1.0 2015-05-17
0.0.2 2015-05-17
0.0.1 2014-10-28