mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-28 14:34:18 +03:00
Include new function in default config.
This commit is contained in:
parent
9aa446e963
commit
7c229cc88a
@ -1,7 +1,9 @@
|
||||
const path = require("path");
|
||||
|
||||
async function resolveConfig() {
|
||||
return await import(path.join(process.cwd(), "elm-pages.config.mjs"))
|
||||
const initialConfig = await await import(
|
||||
path.join(process.cwd(), "elm-pages.config.mjs")
|
||||
)
|
||||
.then(async (elmPagesConfig) => {
|
||||
return (
|
||||
elmPagesConfig.default || {
|
||||
@ -18,6 +20,15 @@ async function resolveConfig() {
|
||||
vite: {},
|
||||
};
|
||||
});
|
||||
|
||||
return {
|
||||
preloadTagForFile: function () {
|
||||
return true;
|
||||
},
|
||||
headTagsTemplate: defaultHeadTagsTemplate,
|
||||
vite: {},
|
||||
...initialConfig,
|
||||
};
|
||||
}
|
||||
|
||||
function defaultHeadTagsTemplate(context) {
|
||||
|
Loading…
Reference in New Issue
Block a user