@microsoft/bundle-stats-webpack-plugin

v1.1.1
A library for outputting bundle stats webpack plugin .

bundle-stats-webpack-plugin

A library for outputting bundle stats webpack plugin .

Installation

Using npm:

npm install @microsoft/bundle-stats-webpack-plugin

Using Yarn:

yarn add @microsoft/bundle-stats-webpack-plugin

Usage

import { BundleStatsPlugin } from "@microsoft/bundle-stats-webpack-plugin";

//webpack config
module.exports = {
  ...
  plugins: [
    new BundleStatsPlugin(
      "app-id-used-in-reports", // App id which is added to the bundle stats file name
      "./", // Output directory of the ${this.appId}_${this.variant}_bundle-stats.json file wrt to compilation output directory of webpack
      "bundle-variant" // Optional - Use this if your app has multiple bundle variants
    );
  ]
}
npm i @microsoft/bundle-stats-webpack-plugin

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 4/8/2024

Downloads