@microsoft/bundle-stats-webpack-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

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

Weekly Downloads

2

Version

1.1.1

License

MIT

Unpacked Size

8.25 kB

Total Files

5

Last publish

Collaborators

  • vincentbailly
  • bweggersen
  • microsoft1es
  • kenotron_msft