https://github.com/yjl9903/vite-plugin-pdf
Export PDF bundled by Vite
https://github.com/yjl9903/vite-plugin-pdf
pdf playwright vite vite-plugin
Last synced: about 1 month ago
JSON representation
Export PDF bundled by Vite
- Host: GitHub
- URL: https://github.com/yjl9903/vite-plugin-pdf
- Owner: yjl9903
- License: mit
- Created: 2022-08-22T12:22:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-04T08:29:13.000Z (over 1 year ago)
- Last Synced: 2025-03-16T21:05:35.007Z (about 1 month ago)
- Topics: pdf, playwright, vite, vite-plugin
- Language: TypeScript
- Homepage:
- Size: 534 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vite-plugin-pdf
[](https://www.npmjs.com/package/vite-plugin-pdf) [](https://github.com/yjl9903/vite-plugin-pdf/actions/workflows/ci.yml)
Export PDF bundled by Vite.
## Installation
```bash
npm i -D playwright vite-plugin-pdf
``````ts
// vite.config.tsimport { defineConfig } from 'vite';
import PDF from 'vite-plugin-pdf';
export default defineConfig({
plugins: [
/**
* It will generate a pdf at './index.pdf' for the index page ('/') of your app
*/
PDF({
outDir: './',
pages: '/'
})
]
});
```## License
MIT License © 2021 [XLor](https://github.com/yjl9903)