844 B
844 B
| 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
projectColors(false) generates colors for every projecttags(false) copies & parses tags from APIgameVersionscopes game versions from APIlandingPagegets icon urls for top 100 mods
All options are disabled by default
Configuration
import Generator from 'omorphia/plugins/generator'
/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
vite: {
plugins: [
Generator({
projectColors: true,
tags: true,
gameVersions: true,
landingPage: true,
}),
],
},
},
}
export default config