Skip to content
PluginStats

css-mqpacker-webpack-plugin weekly downloads statistics

By shoonia · npm · Webpack plugins

The Webpack plugin for pack same CSS media query rules into one using PostCSS

View on npm Fresh · Dec 6, 2026

css-mqpacker-webpack-plugin has 211 recorded weekly downloads on npm, an increase of 284% over the past 30 days, ranking #2477 of 3,247 tracked listings.

Weekly downloads
211
Official API · Dec 5, 2026
7-day growth
+148%
+126 weekly downloads
30-day growth
+284%
+156 weekly downloads
90-day growth
+25.6%
+43 weekly downloads
Rank
#2477
▲ 52 in 7 days

About css-mqpacker-webpack-plugin

css-mqpacker-webpack-plugin

npm version

The Webpack plugin for pack same CSS media query rules into one using PostCSS.

node-css-mqpacker

Before:

.foo {
  width: 240px;
}

@media (max-width: 768px) {
  .foo {
    width: 576px;
  }
}

.bar {
  width: 160px;
}

@media (max-width: 768px) {
  .bar {
    width: 384px;
  }
}

After:

.foo {
  width: 240px;
}

.bar {
  width: 160px;
}

@media (max-width: 768px) {
  .foo {
    width: 576px;
  }

  .bar {
    width: 384px;
  }
}

Install

npm i css-mqpacker-webpack-plugin --save-dev
# or
yarn add css-mqpacker-webpack-plugin -D

Example

webpack.config.js

const CssMqpackerPlugin = require('css-mqpacker-webpack-plugin');

module.exports = {
  optimization: {
    minimize: true,
    minimizer: [
      new CssMqpackerPlugin(),
    ],
  },
};

Options

test

Type: String|RegExp|Array<String|RegExp> Default: /\.css(\?.*)?$/i

Test to match files against.

webpack.config.js

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

Type: String|RegExp|Array<String|RegExp> Default: undefined

Files to include.

webpack.config.js

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

Type: String|RegExp|Array<String|RegExp> Default: undefined

Files to exclude.

webpack.config.js

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

Type: Boolean|Function Default: false

By default, CSS MQPacker pack and order media queries as they are defined (the “first win” algorithm). If you want to sort media queries automatically, pass sort: true.

webpack.config.js

module.exports = {
  optimization: {
    minimize: true,
    minimizer: [
      new CssMqpackerPlugin({
        sort: true,
      }),
    ],
  },
};

License

MIT

Description from the npm listing.

  • webpack
  • webpack-plugin
  • postcss
  • css-mqpacker
  • 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

css-mqpacker-webpack-plugin weekly downloads on npm, last 90 days: 211 weekly downloads as of Dec 5, 2026, +25.6% over 90 days.css-mqpacker-webpack-pluginWeekly downloads on npm · Last 90 days211downloads / week+25.6% over 90 days050100150200250300Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
css-mqpacker-webpack-plugin weekly downloads on npm, last 90 days: 211 weekly downloads as of Dec 5, 2026, +25.6% over 90 days.

7/30/90-day growth

css-mqpacker-webpack-plugin weekly downloads growth on npm: +148% over 7 days, +284% over 30 days, +25.6% over 90 days.css-mqpacker-webpack-pluginWeekly downloads growth on npm211downloads / week now7-day growth+126 weekly downloads+148%30-day growth+156 weekly downloads+284%90-day growth+43 weekly downloads+25.6%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
css-mqpacker-webpack-plugin weekly downloads growth on npm: +148% over 7 days, +284% over 30 days, +25.6% over 90 days.

Ranking history

css-mqpacker-webpack-plugin npm ranking history: currently #2477 (by weekly downloads).css-mqpacker-webpack-pluginnpm ranking · by weekly downloads · Last 90 days#2477current rank#500#1000#1500#2000#2500#3000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
css-mqpacker-webpack-plugin npm ranking history: currently #2477 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 124, #17 (overall #2,477)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins349 listings · 18 pages · page 7, #15 (overall #135)
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 (592)
Recent weekly downloads observations for css-mqpacker-webpack-plugin
Date (UTC)Weekly downloadsChange vs. previous
211+4
207-1
208+34
174+76
98+40
58-8
66-19
85-10
95-51
146+8
138+8
1300
130+11
119—

Similar npm Webpack plugins plugins

All 20 css-mqpacker-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/css-mqpacker-webpack-plugin. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.