Export PDF bundled by Vite
npm install vite-plugin-pdf 
Export PDF bundled by Vite.
``bash`
npm i -D playwright vite-plugin-pdf
`ts
// 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: '/'
})
]
});
``
MIT License © 2021 XLor