mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-02 00:18:19 +03:00
22 lines
533 B
JavaScript
22 lines
533 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) {
|
|
return `
|
|
<link rel="stylesheet" href="/style.css" />
|
|
<meta name="generator" content="elm-pages v${context.cliVersion}" />
|
|
`;
|
|
},
|
|
preloadTagForFile(file) {
|
|
return !file.endsWith(".css");
|
|
},
|
|
};
|