@exponent/stats-webpack-plugin

Write the stats of a build to a file.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
1668May 6, 2021Oct 28, 2014Minified + gzip package size for @exponent/stats-webpack-plugin in KB

Readme

Stats plugin for webpack Version Build Status Dependency Status

Writes the stats of a build to a file.

Installation

$ npm install --save 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.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.