Prepare a get files function for later development

This commit is contained in:
itsfinniii
2026-04-27 22:24:20 +02:00
parent 0ef04d5f3e
commit b13935c7c5
2 changed files with 11 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ import preact from "@astrojs/preact";
import tailwindcss from "@tailwindcss/vite";
import graphql from "@rollup/plugin-graphql";
import playformCompress from "@playform/compress";
import { getFiles } from "./src/build/files.ts";
// https://astro.build/config
export default defineConfig({
@@ -13,7 +14,14 @@ export default defineConfig({
JSON: true,
JavaScript: false,
HTML: true
})],
}), {
name: "download-files",
hooks: {
"astro:build:start": async ({ }) => {
await getFiles();
}
}
}],
output: "static",
prefetch: true,
build: {

View File

@@ -1 +1,3 @@
// This file gets files, and puts them in the public folder before starting the build.
export async function getFiles() {
}