Writes the stats of a build to a file.
Give webpack the
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
- Code:
git clone git://github.com/unindented/stats-webpack-plugin.git
- Home:
Contributors
- Daniel Perez Alvarez (unindented@gmail.com)
- Izaak Schroeder (izaak.schroeder@gmail.com)