generator-svalter
Version:
Generator to help you create and manage svelte/sapper application
39 lines (33 loc) • 1.23 kB
HTML
<html lang='en'>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width,initial-scale=1.0'>
<meta name='theme-color' content='#333333'>
%sapper.base%
<% if (css_reset !== 'none') { -%>
<link rel="stylesheet" href="/styles/<%=css_reset%>.css" />
<% } -%>
<% if (!sass) { -%>
<link rel='stylesheet' href='/styles/global.css'>
<% } -%>
<link rel='manifest' href='manifest.json' crossorigin='use-credentials'>
<link rel='icon' type='image/png' href='favicon.png'>
<!-- Sapper generates a <style> tag containing critical CSS
for the current page. CSS for the rest of the app is
lazily loaded when it precaches secondary pages -->
%sapper.styles%
<!-- This contains the contents of the <svelte:head> component, if
the current page has one -->
%sapper.head%
<!-- Sapper creates a <script> tag containing `src/client.js`
and anything else it needs to hydrate the app and
initialise the router -->
%sapper.scripts%
</head>
<body>
<!-- The application will be rendered inside this element,
because `src/client.js` references it -->
<div id='sapper'>%sapper.html%</div>
</body>
</html>