Files
AstralRinth/theseus_gui/svelte.config.js
2022-03-06 10:55:51 -08:00

36 lines
991 B
JavaScript

import adapter from '@sveltejs/adapter-static';
import preprocess from 'svelte-preprocess';
import path from "path";
import Icons from 'unplugin-icons/vite';
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: preprocess({
postcss: true,
}),
kit: {
adapter: adapter({
fallback: '200.html',
}),
vite: {
plugins: [
Icons({
compiler: 'svelte',
}),
],
resolve: {
alias: {
$assets: path.resolve('./src/assets'),
$components: path.resolve('./src/components'),
$lib: path.resolve('./src/lib'),
$stores: path.resolve('./src/stores'),
$styles: path.resolve('./src/styles'),
$generated: path.resolve('./src/generated'),
},
},
}
}
};
export default config;