2022-02-23 21:06:15 +03:00
|
|
|
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",
|
|
|
|
]),
|
|
|
|
],
|
|
|
|
}),
|
2022-11-02 12:22:26 +03:00
|
|
|
headTagsTemplate(context) {
|
|
|
|
return `
|
2022-10-28 08:27:59 +03:00
|
|
|
<link rel="stylesheet" href="/style.css" />
|
|
|
|
<meta name="generator" content="elm-pages v${context.cliVersion}" />
|
2022-11-02 12:22:26 +03:00
|
|
|
`;
|
|
|
|
},
|
|
|
|
preloadTagForFile(file) {
|
|
|
|
return !file.endsWith(".css");
|
|
|
|
},
|
2022-02-23 21:06:15 +03:00
|
|
|
};
|