Socket
Socket
Sign inDemoInstall

stats-webpack-plugin

Package Overview
Dependencies
78
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    stats-webpack-plugin

Write the stats of a build to a file.


Version published
Maintainers
1
Install size
1.34 MB
Created

Readme

Source

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.

Keywords

FAQs

Last updated on 28 Aug 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc