forked from escapingnetwork/pages
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelm-pages.config.mjs
More file actions
31 lines (26 loc) · 1.18 KB
/
elm-pages.config.mjs
File metadata and controls
31 lines (26 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { defineConfig } from "vite";
import adapter from "./netlify.js";
import tailwindcss from "@tailwindcss/vite";
export default {
vite: defineConfig({ plugins: [tailwindcss()] }),
adapter,
headTagsTemplate(context) {
return `
<link rel="preload" href="/style.css" as="style" />
<link rel="stylesheet" href="/style.css" />
<link rel="icon" href="/media/logo.svg">
<link rel="mask-icon" href="/media/logo.svg" color="#000000">
<link rel="apple-touch-icon" href="/media/logo-180.png">
<meta name="generator" content="elm-pages v${context.cliVersion}" />
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff" />
<script defer data-domain="capybara.house" src="https://plausible.escaping.network/js/plausible.js"></script>
`;
// <link rel="manifest" href="manifest.json">
},
preloadTagForFile(file) {
// add preload directives for JS assets and font assets, etc., skip for CSS files
// this function will be called with each file that is procesed by Vite, including any files in your headTagsTemplate in your config
return !file.endsWith(".css");
},
};
{/* <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0f172a" /> */ }