Prepare a get files function for later development
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
// This file gets files, and puts them in the public folder before starting the build.
|
||||
export async function getFiles() {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user