Skip to content

How to use

To use the Gameface Vite plugin, you need to set up your project with Vite and then configure the plugin in your vite.config.js file.

After you have Vite project, vite config file, and the plugin installed, you can enable the plugin by adding it to the plugins array in your Vite configuration file. Here’s a basic example of how to do this:

vite.config.js
import { defineConfig } from 'vite';
import solidGameface from 'vite-gameface';
export default defineConfig({
...
plugins: [
...
solidGameface()
],
...
});

Make sure solidGameface method is called as a last plugin in the array. This is important because the plugin needs to be the last one to process the files, ensuring that all other plugins have already done their work before Gameface processes the files.