Skip to main content
Module

x/solidstart/build.js

SolidStart, the Solid app framework
Go to Latest
File
import { glob } from "glob";import { copyFile, mkdir, rm } from "node:fs/promises";import { dirname, join } from "node:path";
try { await rm("dist", { recursive: true });} catch {}
const assets = await glob(`**/*.css`, { cwd: join(process.cwd(), "src") })
await Promise.all(assets.map(async a => { await mkdir(join("dist", dirname(a)), { recursive: true }) await copyFile(join("src", a), join("dist", a));}))