@opexa/vite-plugin-screenshot
v0.0.2
Published
Take a screenshot of your Vite application during build.
Downloads
85
Readme
Vite Screenshot Plugin
Take a screenshot of your Vite application during build.
Installation
npm install --save-dev @opexa/vite-plugin-screenshot
Usage
// vite.config.ts
import { defineConfig } from 'vite';
import { screenshot } from '@opexa/vite-plugin-screenshot';
export default defineConfig({
plugins: [
screenshot({
width: 1000,
height: 1080,
filePath: 'static/screenshot',
fileType: 'webp',
quality: 80,
fullPage: true,
}),
],
});