{"library":"size-plugin","title":"size-plugin","description":"A webpack plugin that tracks and displays the gzipped sizes of your assets over time, showing deltas from the previous build. Current stable version is 3.0.0 (2021). Released as needed; maintained by Google Chrome Labs. Key differentiators: simple setup, built-in compression options (gzip, brotli, none), TypeScript types, and automatic file size persistence. Compare to webpack-bundle-analyzer which visualizes composition, or bundlesize which enforces thresholds.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install size-plugin"],"cli":null},"imports":["const SizePlugin = require('size-plugin');","new SizePlugin({ compression: 'gzip' })","import SizePlugin = require('size-plugin'); // or import * as SizePlugin from 'size-plugin'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// webpack.config.js\nconst SizePlugin = require('size-plugin');\n\nmodule.exports = {\n  // your webpack config\n  plugins: [\n    new SizePlugin({\n      compression: 'gzip', // default; also 'brotli' or 'none'\n      pattern: '*.js',\n      exclude: '*.map',\n    })\n  ]\n};","lang":"javascript","description":"Adds the size-plugin to measure and display gzipped sizes of JS assets in webpack output.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}