1.0.0 • Published 5 years ago

webpack-stats-disk-plugin v1.0.0

Weekly downloads
104
License
MIT
Repository
github
Last release
5 years ago

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.
1.0.0

5 years ago