Single template & analytics.js script reference.
This commit is contained in:
@@ -12,7 +12,7 @@ const VinlottisConfig = {
|
||||
new HtmlWebpackPlugin({
|
||||
chunks: ["vinlottis"],
|
||||
filename: "index.html",
|
||||
template: "./src/templates/Create.html",
|
||||
template: "./src/templates/Index.html",
|
||||
inject: true,
|
||||
minify: {
|
||||
removeComments: true,
|
||||
|
||||
@@ -45,8 +45,7 @@ webpackConfig = merge(webpackConfig, {
|
||||
},
|
||||
plugins: [
|
||||
new HtmlPlugin({
|
||||
template: "src/templates/Create.html",
|
||||
chunksSortMode: "dependency"
|
||||
template: "src/templates/Index.html"
|
||||
})
|
||||
]
|
||||
});
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="nb">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>Vinlottis</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta
|
||||
name="description"
|
||||
content="Knowits ukentlige vinlotteri-statistikk-side."
|
||||
/>
|
||||
<meta name="keywords" content="vin,vinlotteri,knowit,statistikk" />
|
||||
<meta name="author" content="Kasper Rynning-Tønnesen & Kevin Midbøe" />
|
||||
<link
|
||||
rel="preload"
|
||||
href="/assets/fonts/bold.woff"
|
||||
as="font"
|
||||
crossorigin
|
||||
/>
|
||||
<meta
|
||||
name="description"
|
||||
content="Knowits ukentlige vinlotteri-statistikk-side."
|
||||
/>
|
||||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="152x152"
|
||||
href="/assets/images/apple-touch-icon.png"
|
||||
/>
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/png"
|
||||
sizes="32x32"
|
||||
href="/assets/images/favicon-32x32.png"
|
||||
/>
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/png"
|
||||
sizes="16x16"
|
||||
href="/assets/images/favicon-16x16.png"
|
||||
/>
|
||||
<link rel="manifest" href="/assets/manifest.json" />
|
||||
<link
|
||||
rel="mask-icon"
|
||||
href="/assets/images/safari-pinned-tab.svg"
|
||||
color="#23101f"
|
||||
/>
|
||||
<meta name="msapplication-TileColor" content="#da532c" />
|
||||
<meta name="theme-color" content="#b7debd" />
|
||||
<meta
|
||||
name="apple-mobile-web-app-status-bar-style"
|
||||
content="black-translucent"
|
||||
/>
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
<noscript>Du trenger vin, jeg trenger javascript!</noscript>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<style>
|
||||
noscript {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
height: 100vh;
|
||||
background-color: #b7debd;
|
||||
font-size: 1.5rem;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
</style>
|
||||
@@ -1 +1,73 @@
|
||||
<div id="app"></div>
|
||||
<!DOCTYPE html>
|
||||
<html lang="nb">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>Vinlottis</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta
|
||||
name="description"
|
||||
content="Knowits ukentlige vinlotteri-statistikk-side."
|
||||
/>
|
||||
<meta name="keywords" content="vin,vinlotteri,knowit,statistikk" />
|
||||
<meta name="author" content="Kasper Rynning-Tønnesen & Kevin Midbøe" />
|
||||
<link
|
||||
rel="preload"
|
||||
href="/public/assets/fonts/bold.woff"
|
||||
as="font"
|
||||
crossorigin
|
||||
/>
|
||||
<meta
|
||||
name="description"
|
||||
content="Knowits ukentlige vinlotteri-statistikk-side."
|
||||
/>
|
||||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="152x152"
|
||||
href="/public/assets/images/apple-touch-icon.png"
|
||||
/>
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/png"
|
||||
sizes="32x32"
|
||||
href="/public/assets/images/favicon-32x32.png"
|
||||
/>
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/png"
|
||||
sizes="16x16"
|
||||
href="/public/assets/images/favicon-16x16.png"
|
||||
/>
|
||||
<link rel="manifest" href="/public/assets/manifest.json" />
|
||||
<link
|
||||
rel="mask-icon"
|
||||
href="/public/assets/images/safari-pinned-tab.svg"
|
||||
color="#23101f"
|
||||
/>
|
||||
<meta name="msapplication-TileColor" content="#da532c" />
|
||||
<meta name="theme-color" content="#b7debd" />
|
||||
<meta
|
||||
name="apple-mobile-web-app-status-bar-style"
|
||||
content="black-translucent"
|
||||
/>
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
<noscript>Du trenger vin, jeg trenger javascript!</noscript>
|
||||
<script src="/public/analytics.js" async></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<style>
|
||||
noscript {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
height: 100vh;
|
||||
background-color: #b7debd;
|
||||
font-size: 1.5rem;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user