Skip to content
JS
Package

vite-plugin-css-injected-by-js

A Vite plugin that takes the CSS and adds it to the page through the JS. For those who want a single JS file.

v5.0.2, 17 Jul 2026MITESM onlyTypes: BundledBundler plugins and loaders
$ npm install vite-plugin-css-injected-by-js

Key numbers

As of 25 Sept 2026
Weekly downloads
565.2k
+104% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
2 months ago
v5.0.2
GitHub stars
507
29 forks
Open issues / PRs
0 / 0
Contributors
-
Commits, last 52 weeks
7

Downloads

Last week 2026-09-15 to 2026-09-21
0250k500k750k1mSept 2025Mar 2026Sept 2026High 901.2k (18 Aug 2026)Low 208.2k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

565,150 downloads last week, 2,873,832 in the last month. The 12-month change of +104% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
540 in total
Latest version
5.0.2, 17 Jul 20262 months ago
First published
9 Aug 2021
Last push to GitHub
17 Jul 202669 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
7
Dependents on npm
578

Major versions

  1. v5 first release 5.0.0, 14 Apr 2026
  2. v4 first release 4.0.0, 25 Feb 2026
  3. v3 first release 3.0.0, 8 Feb 2023
  4. v2 first release 2.0.0, 27 Jul 2022
  5. v1 first release 1.0.0, 9 Aug 2021
  6. v0 first release 0.0.1, 9 Aug 2021

Recent releases

VersionPublished
5.0.217 Jul 2026
5.0.117 Apr 2026
5.0.014 Apr 2026
4.0.126 Feb 2026
4.0.025 Feb 2026
3.5.227 Sept 2024
3.5.127 Apr 2024
3.5.019 Mar 2024
3.4.03 Feb 2024
3.3.120 Dec 2023
3.3.07 Aug 2023
3.2.117 Jul 2023
3.2.06 Jul 2023
3.1.227 Jun 2023
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
58 kB
Dependencies (0)
None
Peer dependencies (1)
vite
npm install vite-plugin-css-injected-by-js
  • jsDelivrhttps://cdn.jsdelivr.net/npm/vite-plugin-css-injected-by-js@5.0.2/
  • unpkghttps://unpkg.com/vite-plugin-css-injected-by-js@5.0.2/
  • esm.shhttps://esm.sh/vite-plugin-css-injected-by-js@5.0.2
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.