You've already forked AstralRinth
forked from didirus/AstralRinth
40 lines
1.1 KiB
JavaScript
40 lines
1.1 KiB
JavaScript
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import path from "path";
|
|
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,
|
|
precompileIntl('locales'),
|
|
Generator({
|
|
gameVersions: true,
|
|
openapi: true,
|
|
}),
|
|
],
|
|
optimizeDeps: {
|
|
include: ["highlight.js/lib/core"],
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
$assets: path.resolve('./src/assets'),
|
|
$components: path.resolve('./src/components'),
|
|
$layout: path.resolve('./src/layout'),
|
|
$lib: path.resolve('./src/lib'),
|
|
$stores: path.resolve('./src/stores'),
|
|
$styles: path.resolve('./src/styles'),
|
|
$generated: path.resolve('./src/generated'),
|
|
},
|
|
},
|
|
server: {
|
|
fs: {
|
|
allow: ['generated'],
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|