You've already forked AstralRinth
forked from didirus/AstralRinth
Update to the newest version of Omorphia
This commit is contained in:
@@ -1,13 +1,23 @@
|
||||
import { sveltekit } from '@sveltejs/kit/vite';
|
||||
import path from "path";
|
||||
import { plugins } from 'omorphia/config/svelte.config'
|
||||
import { plugins } from 'omorphia/config/vite';
|
||||
import precompileIntl from 'svelte-intl-precompile/sveltekit-plugin';
|
||||
import { Generator } from 'omorphia/plugins';
|
||||
|
||||
/** @type {import('vite').UserConfig} */
|
||||
const config = {
|
||||
plugins: [
|
||||
sveltekit(),
|
||||
...plugins
|
||||
...plugins,
|
||||
precompileIntl('locales'),
|
||||
Generator({
|
||||
gameVersions: true,
|
||||
openapi: true,
|
||||
}),
|
||||
],
|
||||
optimizeDeps: {
|
||||
include: ["highlight.js/lib/core"],
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
$assets: path.resolve('./src/assets'),
|
||||
@@ -19,6 +29,11 @@ const config = {
|
||||
$generated: path.resolve('./src/generated'),
|
||||
},
|
||||
},
|
||||
server: {
|
||||
fs: {
|
||||
allow: ['generated'],
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
||||
Reference in New Issue
Block a user