You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The build output when using adapter-static is confusing for people who first use Svelte Kit. It shows a server being built by vite, without mentioning the output directory of static files. (see Logs below)
I think it should show only the output files since they are the most important.
Reproduction
npm init svelte@next and choose skeleton project
Replace svelte.config.js with below and install @sveltejs/adapter-static@next
importadapterfrom'@sveltejs/adapter-static';importpreprocessfrom'svelte-preprocess';/** @type {import('@sveltejs/kit').Config} */constconfig={// Consult https://github.com/sveltejs/svelte-preprocess// for more information about preprocessorspreprocess: preprocess(),kit: {adapter: adapter(),}};exportdefaultconfig;
run yarn build
Logs
The most useful output directory is build/, but it can't be seen anywhere in the project, since it's a default value of adapter-static.
> yarn build
yarn run v1.22.17
$ svelte-kit build
vite v2.7.10 building for production...
✓ 26 modules transformed.
.svelte-kit/output/client/_app/manifest.json 1.30 KiB
.svelte-kit/output/client/_app/start-ce44103b.js 19.66 KiB / gzip: 6.81 KiB
.svelte-kit/output/client/_app/pages/__layout.svelte-0a5295ac.js 0.53 KiB / gzip: 0.36 KiB
.svelte-kit/output/client/_app/error.svelte-25c9b117.js 1.56 KiB / gzip: 0.75 KiB
.svelte-kit/output/client/_app/pages/index.svelte-7a7cfe53.js 6.38 KiB / gzip: 2.39 KiB
.svelte-kit/output/client/_app/chunks/vendor-1b27f159.js 11.49 KiB / gzip: 4.98 KiB
.svelte-kit/output/client/_app/assets/start-61d1577b.css 0.16 KiB / gzip: 0.15 KiB
.svelte-kit/output/client/_app/assets/pages/index.svelte-77e904d2.css 0.14 KiB / gzip: 0.12 KiB
.svelte-kit/output/client/_app/assets/pages/__layout.svelte-7e11ce37.css 0.72 KiB / gzip: 0.43 KiB
vite v2.7.10 building SSR bundle for production...
✓ 19 modules transformed.
.svelte-kit/output/server/manifest.json 1.04 KiB
.svelte-kit/output/server/app.js 46.60 KiB
.svelte-kit/output/server/entries/pages/__layout.svelte.js 0.26 KiB
.svelte-kit/output/server/entries/pages/error.svelte.js 0.72 KiB
.svelte-kit/output/server/entries/pages/index.svelte.js 5.96 KiB
.svelte-kit/output/server/chunks/index-207788bc.js 2.57 KiB
Run npm run preview to preview your production build locally.
> Using @sveltejs/adapter-static
✔ done
Done in 2.39s.
Describe the bug
The build output when using
adapter-static
is confusing for people who first use Svelte Kit. It shows a server being built by vite, without mentioning the output directory of static files. (see Logs below)I think it should show only the output files since they are the most important.
Reproduction
npm init svelte@next
and choose skeleton projectsvelte.config.js
with below and install@sveltejs/adapter-static@next
yarn build
Logs
The most useful output directory is
build/
, but it can't be seen anywhere in the project, since it's a default value ofadapter-static
.System Info
Severity
Confusing for new users
Additional Information
No response
The text was updated successfully, but these errors were encountered: