Skip to content

Commit

Permalink
@slidy/www - fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Valexr committed Oct 4, 2024
1 parent 00ace30 commit df302f5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
12 changes: 11 additions & 1 deletion www/svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
}
};

Expand Down
6 changes: 3 additions & 3 deletions www/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit df302f5

Please sign in to comment.