elm-pages
Version:
Hybrid Elm framework with full-stack and static routes.
19 lines (17 loc) • 603 B
JavaScript
import { defineConfig } from "vite";
import adapter from "elm-pages/adapter/netlify.js";
export default {
vite: defineConfig({}),
adapter,
headTagsTemplate(context) {
return `
<link rel="stylesheet" href="/style.css" />
<meta name="generator" content="elm-pages v${context.cliVersion}" />
`;
},
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 processed by Vite, including any files in your headTagsTemplate in your config
return !file.endsWith(".css");
},
};