diff --git a/www/svelte.config.js b/www/svelte.config.js index d3499141..903e94a4 100644 --- a/www/svelte.config.js +++ b/www/svelte.config.js @@ -13,7 +13,17 @@ const config = { adapter: adapter(), paths: { base: dev ? '' : '/Slidy' - } + }, + alias: { + '@components': './src/lib/components', + '@lib': './src/lib', + '@paths': './src/core/paths.ts', + '@styles': './src/lib/styles', + '@stores': './src/lib/stores', + '@utils': './src/lib/utils', + '@types': './src/types', + }, + prerender: { handleMissingId: 'warn' } } }; diff --git a/www/vite.config.js b/www/vite.config.js index 4d8faed0..089f1ad5 100644 --- a/www/vite.config.js +++ b/www/vite.config.js @@ -14,9 +14,9 @@ const aliases = [ /** @type {import("vite").UserConfig} */ const config = { plugins: [sveltekit()], - resolve: { - alias: Object.fromEntries(aliases.map((alias) => [alias.name, path.resolve(alias.path)])) - }, + // resolve: { + // alias: Object.fromEntries(aliases.map((alias) => [alias.name, path.resolve(alias.path)])) + // }, server: { port: 3339 }