You've already forked AstralRinth
forked from didirus/AstralRinth
Add generated/ to .gitignore & fixes
This commit is contained in:
@@ -1,39 +1,28 @@
|
||||
import { sveltekit } from '@sveltejs/kit/vite';
|
||||
import path from "path";
|
||||
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'],
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
sveltekit(),
|
||||
...plugins,
|
||||
precompileIntl('locales'),
|
||||
Generator({
|
||||
gameVersions: true,
|
||||
openapi: true
|
||||
})
|
||||
],
|
||||
optimizeDeps: {
|
||||
include: ['highlight.js/lib/core']
|
||||
},
|
||||
server: {
|
||||
fs: {
|
||||
allow: ['generated']
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
||||
Reference in New Issue
Block a user