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

22 lines
533 B
JavaScript
Raw Normal View History

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) {
return `
<link rel="stylesheet" href="/style.css" />
<meta name="generator" content="elm-pages v${context.cliVersion}" />
`;
},
preloadTagForFile(file) {
return !file.endsWith(".css");
},
};