Skip to content

Commit 471942d

Browse files
Sync kit docs (#1057)
sync kit docs Co-authored-by: Rich-Harris <[email protected]>
1 parent 3766e33 commit 471942d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

apps/svelte.dev/content/docs/kit/98-reference/50-configuration.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ are three strategies with different trade-offs:
729729

730730
```ts
731731
// @noErrors
732-
bundleStrategy?: 'split' | 'single';
732+
bundleStrategy?: 'split' | 'single' | 'inline';
733733
```
734734

735735
<div class="ts-block-property-details">
@@ -741,8 +741,9 @@ bundleStrategy?: 'split' | 'single';
741741

742742
</div>
743743

744-
If `'split'`, splits the app up into multiple .js/.css files so that they are loaded lazily as the user navigates around the app. This is the default, and is recommended for most scenarios.
745-
If `'single'`, creates just one .js bundle and one .css file containing code for the entire app.
744+
- If `'split'`, splits the app up into multiple .js/.css files so that they are loaded lazily as the user navigates around the app. This is the default, and is recommended for most scenarios.
745+
- If `'single'`, creates just one .js bundle and one .css file containing code for the entire app.
746+
- If `'inline'`, inlines all JavaScript and CSS of the entire app into the HTML. The result is usable without a server (i.e. you can just open the file in your browser).
746747

747748
When using `'split'`, you can also adjust the bundling behaviour by setting [`output.experimentalMinChunkSize`](https://rollupjs.org/configuration-options/#output-experimentalminchunksize) and [`output.manualChunks`](https://rollupjs.org/configuration-options/#output-manualchunks)inside your Vite config's [`build.rollupOptions`](https://vite.dev/config/build-options.html#build-rollupoptions).
748749

@@ -1051,6 +1052,7 @@ type?: 'pathname' | 'hash';
10511052
What type of client-side router to use.
10521053
- `'pathname'` is the default and means the current URL pathname determines the route
10531054
- `'hash'` means the route is determined by `location.hash`. In this case, SSR and prerendering are disabled. This is only recommended if `pathname` is not an option, for example because you don't control the webserver where your app is deployed.
1055+
It comes with some caveats: you can't use server-side rendering (or indeed any server logic), and you have to make sure that the links in your app all start with /#/, or they won't work. Beyond that, everything works exactly like a normal SvelteKit app.
10541056

10551057
</div>
10561058
</div>

0 commit comments

Comments
 (0)