git.iko.soy/horeca-productions/landing
on master help sign in
horeca-productions/landing/elm-pages.config.mjs
18 lines 603 B history raw
1import { defineConfig } from "vite";
2import adapter from "elm-pages/adapter/netlify.js";
4export default {
5 vite: defineConfig({}),
6 adapter,
7 headTagsTemplate(context) {
8 return `
9<link rel="stylesheet" href="/style.css" />
10<meta name="generator" content="elm-pages v${context.cliVersion}" />
11`;
12 },
13 preloadTagForFile(file) {
14 // add preload directives for JS assets and font assets, etc., skip for CSS files
15 // this function will be called with each file that is processed by Vite, including any files in your headTagsTemplate in your config
16 return !file.endsWith(".css");
17 },
18};