Skip to content
PluginStats

vite-plugin-sass-dts weekly downloads statistics

By activeguild · npm · Vite plugins

A plugin that automatically creates a type file when using the css module type-safely.

View on npm Fresh · Dec 6, 2026

vite-plugin-sass-dts has 99,290 recorded weekly downloads on npm, an increase of 20.3% over the past 30 days, ranking #640 of 3,247 tracked listings.

Weekly downloads
99,290
Official API · Dec 5, 2026
7-day growth
+36.8%
+26.7K weekly downloads
30-day growth
+20.3%
+16.8K weekly downloads
90-day growth
+191%
+65.2K weekly downloads
Rank
#640
▲ 42 in 7 days

About vite-plugin-sass-dts

<h1 align="center">vite-plugin-sass-dts ⚡ Welcome 😀</h1> <p align="left"> <a href="https://github.com/actions/setup-node"><img alt="GitHub Actions status" src="https://github.com/activeguild/vite-plugin-sass-dts/workflows/automatic%20release/badge.svg" style="max-width:100%;"></a> </p>

vite-plugin-sass-dts

A plugin that automatically creates a type file when using the CSS module type-safely.

Demo

<img src="https://user-images.githubusercontent.com/39351982/138745772-8b218863-fe28-4573-a86a-fc10a7ab1ac7.gif" width="600" />

Install

npm i -D vite-plugin-sass-dts

For version 1.3.27 or later, please use the latest sass-embedded package; we have confirmed that it does not work with the sass package.

This plugin requires Vite 7 or later (vite: ^7 || ^8). Sass files are compiled with the modern Sass API (modern / modern-compiler) by default. The legacy Sass API (api: 'legacy') is no longer supported since Vite 7.

Options

ParameterTypeDescription
enabledModestring[]Create d.ts files for css modules of file extension css, sass, scss included in the project at build time.<br /><br>Valid enumerations 'development' and 'production'. By default it is enabled only for development.<br>We recommend that you turn off the flag once you have created the d.ts file, as it will take a long time to build. (default [development])
global.generatebooleanOutputs the common style set in <b>additionalData</b> of <b>preprocessorOptions</b> as a global type definition file.
global.outputFilePathstringSpecify the file that outputs the global common style with an absolute path.Relative paths will be supported.
typeName.replacementstring | (fileName: string) => stringType name can be changed to any value. (default is the classname key as a string. e.g. theClassName: 'theClassName';)
exportName.replacementstring | (fileName: string) => stringExport name can be changed to any value. (default is 'classNames'. e.g. declare const classNames: { ... };)
outputDirstringAn absolute path to the output directory. If undefined, declaration files will be generated in the source directories.
sourceDirstringAn absolute path to your source code directory. The plugin will replace this path with outputDir option when writing declaration files.
esmExportbooleanSpecify dts export type. If enabled, going to use ESM style export export default .... Otherwise export = ....
prettierFilePathstringSpecify the path to the prettier configuration file.
formatter'prettier' | 'biome'Specify the formatter used for the generated d.ts files. When set to biome, install @biomejs/js-api and @biomejs/wasm-nodejs as devDependencies. (default: prettier)…

Description from the npm listing.

  • vite
  • vite-plugin
  • css
  • scss
  • classnames
  • clsx
  • typescript
  • generics
  • cssmodules

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

vite-plugin-sass-dts weekly downloads on npm, last 90 days: 99,290 weekly downloads as of Dec 5, 2026, +191% over 90 days.vite-plugin-sass-dtsWeekly downloads on npm · Last 90 days99,290downloads / week+191% over 90 days020K40K60K80K100K120KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
vite-plugin-sass-dts weekly downloads on npm, last 90 days: 99,290 weekly downloads as of Dec 5, 2026, +191% over 90 days.

7/30/90-day growth

vite-plugin-sass-dts weekly downloads growth on npm: +36.8% over 7 days, +20.3% over 30 days, +191% over 90 days.vite-plugin-sass-dtsWeekly downloads growth on npm99,290downloads / week now7-day growth+26,699 weekly downloads+36.8%30-day growth+16,757 weekly downloads+20.3%90-day growth+65,190 weekly downloads+191%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
vite-plugin-sass-dts weekly downloads growth on npm: +36.8% over 7 days, +20.3% over 30 days, +191% over 90 days.

Ranking history

vite-plugin-sass-dts npm ranking history: currently #640 (by weekly downloads).vite-plugin-sass-dtsnpm ranking · by weekly downloads · Last 90 days#640current rank#200#300#400#500#600#700#800Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
vite-plugin-sass-dts npm ranking history: currently #640 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 32, #20 (overall #640)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 pages · page 6, #4 (overall #104)
Vite 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 vite-plugin-sass-dts
Date (UTC)Weekly downloadsChange vs. previous
99,290+2.3K
97,027+8.6K
88,449+8.5K
79,917+6.7K
73,226+1.8K
71,397+985
70,412-2.2K
72,591-2.1K
74,689-7.7K
82,346-6.6K
88,959-3.7K
92,644-2K
94,634-19
94,653—

Similar npm Vite plugins plugins

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