vite-plugin-pdf
v0.1.0
Published
Export PDF bundled by Vite
Downloads
11
Readme
vite-plugin-pdf
Export PDF bundled by Vite.
Installation
npm i -D playwright vite-plugin-pdf// vite.config.ts
import { 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
