webpack-stats-disk-plugin
v1.0.0
Published
Webpack Plugin that outputs build stats to a JSON file, without storing it in memory.
Downloads
165
Readme
webpack-stats-disk-plugin
Webpack Plugin that outputs build stats to a JSON file, without storing it in memory.
Usage
const StatsDiskPlugin = require("webpack-stats-disk-plugin");
module.exports = {
...
plugins: [
new StatsDiskPlugin({}),
],
};
Example options for use with webpack-ssr-stats-loader
new StatsDiskPlugin({
options: {
publicPath: true,
entrypoints: true,
chunkGroups: true,
hash: false,
assets: false,
children: false,
chunks: false,
modules: false,
source: false,
errorDetails: false,
timings: false,
}
});
Parameters
- opts (Object) Parameters to pass to the plugin
- opts.filename (String) output file name (Default: "stats.json")
- opts.path (String) output directory path (Default is the webpack output.path in config)
- opts.options (Object) passed on to Webpack. See official docs for list of available options.