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.
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
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
- v5 first release 5.0.0, 14 Apr 2026
- v4 first release 4.0.0, 25 Feb 2026
- v3 first release 3.0.0, 8 Feb 2023
- v2 first release 2.0.0, 27 Jul 2022
- v1 first release 1.0.0, 9 Aug 2021
- v0 first release 0.0.1, 9 Aug 2021
Recent releases
| Version | Published |
|---|---|
| 5.0.2 | 17 Jul 2026 |
| 5.0.1 | 17 Apr 2026 |
| 5.0.0 | 14 Apr 2026 |
| 4.0.1 | 26 Feb 2026 |
| 4.0.0 | 25 Feb 2026 |
| 3.5.2 | 27 Sept 2024 |
| 3.5.1 | 27 Apr 2024 |
| 3.5.0 | 19 Mar 2024 |
| 3.4.0 | 3 Feb 2024 |
| 3.3.1 | 20 Dec 2023 |
| 3.3.0 | 7 Aug 2023 |
| 3.2.1 | 17 Jul 2023 |
| 3.2.0 | 6 Jul 2023 |
| 3.1.2 | 27 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- jsDelivr
https://cdn.jsdelivr.net/npm/vite-plugin-css-injected-by-js@5.0.2/ - unpkg
https://unpkg.com/vite-plugin-css-injected-by-js@5.0.2/ - esm.sh
https://esm.sh/vite-plugin-css-injected-by-js@5.0.2
Indexability: Indexed.