docs: prefetch links

This commit is contained in:
Eric Liu 2020-07-24 21:00:28 -07:00
commit 5eebd49037
2 changed files with 9 additions and 1 deletions

View file

@ -64,6 +64,7 @@
<SideNavLink
text="Getting Started"
href="getting-started"
rel="prefetch"
isSelected={segment === 'getting-started'} />
<SideNavMenu
text="Components"
@ -72,10 +73,12 @@
<SideNavMenuItem
text="Index"
href="components"
rel="prefetch"
isSelected={segment === 'components' && $tail && $tail.slug === 'index'} />
<SideNavMenuItem
text="Button"
href="components/button"
rel="prefetch"
isSelected={segment === 'components' && $tail && $tail.slug === 'button'} />
</SideNavMenu>
</SideNavItems>

View file

@ -21,7 +21,12 @@ module.exports = {
test: /\.(svelte|html)$/,
use: {
loader: "svelte-loader",
options: { dev, hydratable: true, hotReload: false },
options: {
dev,
immutable: true,
hydratable: true,
hotReload: false,
},
},
},
],