15 lines
514 B
JavaScript
15 lines
514 B
JavaScript
import { copyFileSync, mkdirSync } from "node:fs";
|
|
import { resolve } from "node:path";
|
|
|
|
// The same standalone demo is served by Vite dev, Vite demo build and prebuilt dist.
|
|
const source = resolve("src/dev/BiImage-examples.html");
|
|
for (const destination of [
|
|
"public/BiImage-examples.html",
|
|
"deploy-demo/public/BiImage-examples.html",
|
|
"dist/remote/BiImage-examples.html",
|
|
]) {
|
|
const target = resolve(destination);
|
|
mkdirSync(resolve(target, ".."), { recursive: true });
|
|
copyFileSync(source, target);
|
|
}
|