0.1.0 • Published 3 years ago

vite-plugin-pdf v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

vite-plugin-pdf

version CI

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