9
0
mirror of https://github.com/donlon/cloudflare-error-page.git synced 2025-12-23 16:59:17 +00:00

move nodejs folder to javascript

This commit is contained in:
Anthony Donlon
2025-12-22 23:46:21 +08:00
parent d9af59f14f
commit dd29cf0904
15 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import fs from "node:fs";
import path from "node:path";
import { fileURLToPath } from "node:url";
// Resolve the directory of this script
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
// Define paths relative to scripts/copy.js
const src = path.resolve(__dirname, "../../resources/styles/main.css");
const dest = path.resolve(__dirname, "../src/templates/main.css");
// Copy file
fs.copyFileSync(src, dest);