2022-05-20 00:10:15 -07:00
---
title: Generator plugin
---
The generator plugin creates static files from API responses to increase performance and perform tasks that would not be possible on the client. It regenerates files every 7 days, or when the plugin settings change.
### Current options
2022-05-26 19:17:15 -07:00
- `projectColors` (false) generates colors for every project
- `tags` (false) copies & parses tags from API
- `gameVersions` copes game versions from API
- `landingPage` gets icon urls for top 100 mods
2022-05-20 00:10:15 -07:00
> All options are disabled by default
## Configuration
```js
2022-05-26 19:17:15 -07:00
import Generator from 'omorphia/plugins/generator'
2022-05-20 00:10:15 -07:00
/** @type {import('@sveltejs/kit ').Config} */
const config = {
2022-05-26 19:17:15 -07:00
kit: {
vite: {
plugins: [
Generator({
projectColors: true,
tags: true,
gameVersions: true,
landingPage: true,
}),
],
},
},
}
export default config
2022-05-20 00:10:15 -07:00
```