1. stats-webpack-plugin
Write the stats of a build to a file.
stats-webpack-plugin
Package: stats-webpack-plugin
Created by: unindented
Last modified: Mon, 27 Jun 2022 00:07:41 GMT
Version: 0.7.0
License: MIT
Downloads: 438,177
Repository: https://github.com/unindented/stats-webpack-plugin

Install

npm install stats-webpack-plugin
yarn add stats-webpack-plugin

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.

Dependencies

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin