mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
docs: prefetch links
This commit is contained in:
parent
3fa388bd3d
commit
5eebd49037
2 changed files with 9 additions and 1 deletions
|
@ -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>
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue