Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@ A Vite plugin which inlines source files in HTML files where the `inline-source`

This plugin was heavily influenced by [markup-inline-loader](https://github.com/asnowwolf/markup-inline-loader) for webpack. I wanted the same functionality, but couldn't find a suitable replacement in the Vite ecosystem.

## Requirements

- Node.js 22 or newer
- Vite 8

This package is published as ESM only.

## Installation

```bash
pnpm add -D vite-plugin-inline-source
```

## Example Usage

Check out the interactive demo on [StackBlitz](https://stackblitz.com/edit/vite-cc3cbk?file=vite.config.js)!
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,22 +50,22 @@
"dependencies": {
"csso": "^5.0.5",
"esbuild": "^0.28.0",
"sass": "^1.91.0",
"svgo": "^4.0.0",
"terser": "^5.43.1",
"sass": "^1.99.0",
"svgo": "^4.0.1",
"terser": "^5.47.1",
"tslib": "^2.8.1",
"zod": "^4.1.4"
"zod": "^4.4.3"
},
"devDependencies": {
"@tsconfig/node22": "^22.0.5",
"@types/csso": "^5.0.4",
"@types/node": "^22.19.17",
"@types/node": "^22.19.18",
"@vitest/coverage-v8": "^4.1.5",
"husky": "^9.1.7",
"lint-staged": "^16.1.5",
"lint-staged": "^17.0.2",
"oxfmt": "^0.48.0",
"oxlint": "^1.63.0",
"publint": "^0.3.12",
"publint": "^0.3.19",
"rolldown": "^1.0.0",
"tsdown": "^0.22.0",
"typescript": "^6.0.3",
Expand Down
Loading