git.iko.soy/gigawork-coworking/gigawork-coworking.github.io
on 3298ded help sign in
18 lines 602 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 procesed by Vite, including any files in your headTagsTemplate in your config
16 return !file.endsWith(".css");
17 },
18};