Skip to main content

Vite Config

As we've seen in Custom Aliases and Static Assets, you can pass any custom Vite config to ViteShot in the vite property of viteshot.config.js.

/viteshot.config.js
const vite = require("vite");
module.exports = {  // ...  vite: vite.defineConfig({    // ...  }),};

For more information on what options you can pass, see Vite's documentation.