elm-pages-v3-beta/examples/docs/elm-pages.config.mjs

25 lines
766 B
JavaScript

import { defineConfig } from "vite";
import { ViteWebfontDownload } from "vite-plugin-webfont-dl";
export default {
vite: defineConfig({
plugins: [
ViteWebfontDownload([
"https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&display=swap&subset=latin",
]),
],
}),
headTagsTemplate: (context) => `
<link rel="stylesheet" href="/style.css" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="generator" content="elm-pages v${context.cliVersion}" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="theme-color" content="#ffffff" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta
name="apple-mobile-web-app-status-bar-style"
content="black-translucent"
/>
`,
};