Add generated/ to .gitignore & fixes

This commit is contained in:
venashial
2022-08-03 00:24:08 -07:00
parent eeb2dc7fd8
commit e17eb02341
11 changed files with 86 additions and 7974 deletions

View File

@@ -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;