Skip to content
PluginStats

vite-plugin-tailwind-purgecss weekly downloads statistics

By AdrianGonz97 · npm · Vite plugins

Vite plugin for PurgeCSS

View on npm Fresh · Oct 17, 2026

vite-plugin-tailwind-purgecss has 2,336 recorded weekly downloads on npm, a decrease of 64.0% over the past 30 days.

It ranks #1252 of 2,256 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by -52.6%.

PluginStats has 543 daily observations since Apr 23, 2025; the latest is from Oct 17, 2026.

Weekly downloads
2,336
Official API · Oct 17, 2026
7-day growth
-42.5%
-1.7K weekly downloads
30-day growth
-64.0%
-4.2K weekly downloads
90-day growth
-52.6%
-2.6K weekly downloads
Rank
#1252
Among tracked npm listings

About vite-plugin-tailwind-purgecss

vite-plugin-tailwind-purgecss

[!IMPORTANT] As of v0.3.0, vite-plugin-tailwind-purgecss no longer purges all unused CSS. Instead, it takes a more conservative and focused approach, only purging unused tailwindcss classes. The previous purging strategy introduced too many bugs and reached far outside of its intended scope. If you wish to reenable the old behavior, see legacy mode.

A simple vite plugin that purges excess Tailwind CSS classes. This plugin should be used in combination with TailwindCSS and a Tailwind UI component library, such as Skeleton, Flowbite or even shadcn-ui (and it's many ports).

Motivation

[!NOTE] This plugin will no longer be necessary after the release of Tailwind v4 as they are introducing a new Vite plugin that will detect and generate the tailwind classes based on the module graph! As such, this plugin will only support Tailwind v3.

Tailwind UI component libraries are fantastic and a joy to work with, but they come with an important caveat. The downside to them is that all of the Tailwind classes that are used in their provided components are _always_ generated, even if you don't import and use any of them. This leads to a larger than necessary CSS bundle.

This is a limitation of how Tailwind works with the config's content field. Tailwind searches through all of the files that are specified in content, uses a regex to find any possible selectors, and generates their respective classes. There's no treeshaking and no purging involved.

How it works

Ideally, we only want to keep the tailwind classes that are being used in your project. We accomplish this by analyzing the files in the module graph and extracting out any of their possible selectors. From there, we pass along the selectors to PurgeCSS for final processing.

Using vite-plugin-tailwind-purgecss with Skeleton, we're able to reduce the CSS bundle size of Skeleton's Barebones Template from:

down to:

Usage

Installation

Add to Vite

...and you're all set!

Plugin Config Options

FAQ

Why not use postcss-purgecss or rollup-plugin-purgecss?

PurgeCSS provides a suite of plugins that do a well enough job for _most_ projects. However, plugins such as postcss-purgecss and rollup-plugin-purgecss take a rather naive approach to selector extraction. Similar to how Tailwind generates its classes, they _only_ analyze the files that are passed to them through their content fields, which means that if you pass an entire UI library to it, none of the selectors that are unused in _your project_ will be properly purged.

Description from the npm listing.

  • purgeCSS
  • sveltekit
  • svelte
  • rollup
  • tailwind
  • tailwindcss
  • vite
  • vite-plugin
  • skeleton

Where vite-plugin-tailwind-purgecss sits in the listing

Each band is one page of 20. Weekly downloads on a log 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.

All npm2,256 listings · 113 pages · page 63, #13 (overall #1253)
All npm: every listing in weekly downloads order
PNG SVG
Vite plugins250 listings · 13 pages · page 12, #20 (overall #240)
Vite plugins: every listing in weekly downloads order
PNG SVG

Charts

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

Adoption over time

vite-plugin-tailwind-purgecss weekly downloads on npm, last 90 days: 2,336 weekly downloads as of Oct 17, 2026, -52.6% over 90 days.vite-plugin-tailwind-purgecssWeekly downloads on npm · Last 90 days2,336downloads / week-52.6% over 90 days2K3K4K5K6K7KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 21, 2026 – Oct 17, 2026 · 89 observations · Updated Oc…pluginstats.com
vite-plugin-tailwind-purgecss weekly downloads on npm, last 90 days: 2,336 weekly downloads as of Oct 17, 2026, -52.6% over 90 days.
PNG SVG

7/30/90-day growth

vite-plugin-tailwind-purgecss weekly downloads growth on npm: -42.5% over 7 days, -64.0% over 30 days, -52.6% over 90 days.vite-plugin-tailwind-purgecssWeekly downloads growth on npm2,336downloads / week now7-day growth-1,726 weekly downloads-42.5%30-day growth-4,156 weekly downloads-64.0%90-day growth-2,597 weekly downloads-52.6%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
vite-plugin-tailwind-purgecss weekly downloads growth on npm: -42.5% over 7 days, -64.0% over 30 days, -52.6% over 90 days.
PNG SVG

Ranking history

vite-plugin-tailwind-purgecss npm ranking history: currently #1252 (by weekly downloads).vite-plugin-tailwind-purgecssnpm ranking · by weekly downloads · Last 90 days#1252current rank#400#600#800#1000#1200#1400Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 17, 2026 – Oct 19, 2026 · 3 observations · Updated Oct 17, 2026pluginstats.com
vite-plugin-tailwind-purgecss npm ranking history: currently #1252 (by weekly downloads).
PNG SVG

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.

Recent observations

Full history (543)
Recent weekly downloads observations for vite-plugin-tailwind-purgecss
Date (UTC)Weekly downloadsChange vs. previous
2,336-473
2,809+162
2,647-815
3,462-718
4,1800
4,180+145
4,035-27
4,062-165
4,227-76
4,303-257
4,560-154
4,714-910
5,624-209
5,833—

Similar npm Vite plugins plugins

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/vite-plugin-tailwind-purgecss. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.