Merge branch 'master' into gui_search

This commit is contained in:
venashial
2022-08-03 00:44:17 -07:00
parent b0a55c9b18
commit 51982dde62
79 changed files with 6320 additions and 6336 deletions

View File

@@ -1,39 +1,25 @@
import adapter from '@sveltejs/adapter-static';
import path from "path";
import { preprocess, plugins } from 'omorphia/config/svelte.config'
import precompileIntl from "svelte-intl-precompile/sveltekit-plugin";
import { preprocess } from 'omorphia/config/svelte';
import path from 'path';
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess,
kit: {
adapter: adapter({
fallback: '200.html',
}),
vite: {
plugins: [
...plugins,
precompileIntl('locales'),
],
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('./generated'),
},
},
server: {
fs: {
// Allow serving files from one level up to the project root
allow: ['..', './generated/*.json'],
}
}
}
preprocess: [preprocess],
kit: {
adapter: adapter({
fallback: '200.html'
}),
alias: {
$generated: path.resolve('./generated'),
$stores: path.resolve('./src/stores'),
$assets: path.resolve('./src/assets'),
$components: path.resolve('./src/components'),
$layout: path.resolve('./src/layout'),
$lib: path.resolve('./src/lib'),
$styles: path.resolve('./src/styles')
}
}
};
export default config;