Skip to content
PluginStats

json-minimizer-webpack-plugin weekly downloads statistics

By webpack-contrib (7 listings) · npm · Webpack plugins

json minimizer plugin for Webpack

View on npm Fresh · Dec 6, 2026

json-minimizer-webpack-plugin has 21,681 recorded weekly downloads on npm, an increase of 30.9% over the past 30 days, ranking #1014 of 3,247 tracked listings.

Weekly downloads
21,681
Official API · Dec 5, 2026
7-day growth
+39.5%
+6.1K weekly downloads
30-day growth
+30.9%
+5.1K weekly downloads
90-day growth
+144%
+12.8K weekly downloads
Rank
#1014
▲ 95 in 7 days

About json-minimizer-webpack-plugin

<div align="center"> <a href="https://github.com/webpack/webpack"> <img width="200" height="200" src="https://webpack.js.org/assets/icon-square-big.svg"> </a> </div>

npm node tests cover discussion size

json-minimizer-webpack-plugin

This plugin uses JSON.stringify() to minify your JSON.

Getting Started

To begin, you'll need to install json-minimizer-webpack-plugin:

npm install json-minimizer-webpack-plugin --save-dev

or

yarn add -D json-minimizer-webpack-plugin

or

pnpm add -D json-minimizer-webpack-plugin

Then add the plugin to your webpack configuration. For example:

webpack.config.js

const JsonMinimizerPlugin = require("json-minimizer-webpack-plugin");
const CopyPlugin = require("copy-webpack-plugin");

module.exports = {
  module: {
    rules: [
      {
        test: /\.json$/i,
        type: "asset/resource",
      },
    ],
  },
  plugins: [
    new CopyPlugin({
      patterns: [
        {
          context: path.resolve(__dirname, "dist"),
          from: "./src/*.json",
        },
      ],
    }),
  ],
  optimization: {
    minimize: true,
    minimizer: [
      // For webpack@5 you can use the `...` syntax to extend existing minimizers (i.e. `terser-webpack-plugin`), uncomment the next line
      // `...`
      new JsonMinimizerPlugin(),
    ],
  },
};

And run webpack via your preferred method.

Options

test

Type:

type test = string | RegExp | Array<string | RegExp>;

Default: /\.json(\?.*)?$/i

Test to match files against.

module.exports = {
  optimization: {
    minimize: true,
    minimizer: [
      new JsonMinimizerPlugin({
        test: /\.foo\.json/i,
      }),
    ],
  },
};
include

Type:

type include = string | RegExp | Array<string | RegExp>;

Default: undefined

Files to include.

webpack.config.js

module.exports = {
  optimization: {
    minimize: true,
    minimizer: [
      new JsonMinimizerPlugin({
        include: /\/includes/,
      }),
    ],
  },
};
exclude

Type:

type exclude = string | RegExp | Array<string | RegExp>;

Default: undefined

Files to exclude.

webpack.config.js

module.exports = {
  optimization: {
    minimize: true,
    minimizer: [
      new JsonMinimizerPlugin({
        exclude: /\/excludes/,
      }),
    ],
  },
};
minimizerOptions

Type:

type minimizerOptions = {
  space?: null | string | number;
  replacer?: null | Function | Array<string | number>;
};

Default: { replacer: null, space: null }

JSON.stringify() options.

module.exports = {
  optimization: {
    minimize: true,
    minimizer: [
      new JsonMinimizerPlugin({
        minimizerOptions: {
          space: "\t",
        },
      }),
    ],
  },
};

Contributing

Please take a moment to read our contributing guidelines if you haven't yet done so.

CONTRIBUTING

License

MIT

Description from the npm listing.

  • json
  • webpack
  • webpack-plugin
  • minimize
  • minimizer
  • minify
  • minifier
  • optimize
  • optimizer

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

json-minimizer-webpack-plugin weekly downloads on npm, last 90 days: 21,681 weekly downloads as of Dec 5, 2026, +144% over 90 days.json-minimizer-webpack-pluginWeekly downloads on npm · Last 90 days21,681downloads / week+144% over 90 days05K10K15K20K25KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
json-minimizer-webpack-plugin weekly downloads on npm, last 90 days: 21,681 weekly downloads as of Dec 5, 2026, +144% over 90 days.

7/30/90-day growth

json-minimizer-webpack-plugin weekly downloads growth on npm: +39.5% over 7 days, +30.9% over 30 days, +144% over 90 days.json-minimizer-webpack-pluginWeekly downloads growth on npm21,681downloads / week now7-day growth+6,140 weekly downloads+39.5%30-day growth+5,123 weekly downloads+30.9%90-day growth+12,785 weekly downloads+144%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
json-minimizer-webpack-plugin weekly downloads growth on npm: +39.5% over 7 days, +30.9% over 30 days, +144% over 90 days.

Ranking history

json-minimizer-webpack-plugin npm ranking history: currently #1014 (by weekly downloads).json-minimizer-webpack-pluginnpm ranking · by weekly downloads · Last 90 days#1014current rank#950#1000#1050#1100#1150#1200Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
json-minimizer-webpack-plugin npm ranking history: currently #1014 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 51, #14 (overall #1,014)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins349 listings · 18 pages · page 2, #5 (overall #25)
Webpack plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (170)
Recent weekly downloads observations for json-minimizer-webpack-plugin
Date (UTC)Weekly downloadsChange vs. previous
21,681+161
21,520+624
20,896+2.3K
18,601+1.7K
16,903+3.5K
13,369-2.1K
15,457-84
15,541-872
16,413-723
17,136-1.1K
18,267-522
18,789-617
19,406+915
18,491—

Similar npm Webpack plugins plugins

All 20 json-minimizer-webpack-plugin alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/json-minimizer-webpack-plugin. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.