1.1.1 • Published 1 year ago

@microsoft/bundle-stats-webpack-plugin v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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
    );
  ]
}
1.1.1

1 year ago

1.1.0

2 years ago