Files
aksel-mini/packages/core/css/build.mjs
T
Aksel Mini b4930f754e ✨ Add css package (@navikt/ds-css) with Button and typography styles
Styles reference CSS custom properties from @navikt/ds-tokens.
build.mjs copies source stylesheets to dist/.
2026-08-06 13:45:00 +02:00

18 lines
477 B
JavaScript

import { mkdirSync, readdirSync, copyFileSync } from "node:fs";
import { dirname, join } from "node:path";
import { fileURLToPath } from "node:url";
const root = dirname(fileURLToPath(import.meta.url));
const src = join(root, "src");
const dist = join(root, "dist");
mkdirSync(dist, { recursive: true });
for (const file of readdirSync(src)) {
if (file.endsWith(".css")) {
copyFileSync(join(src, file), join(dist, file));
}
}
console.log(`Copied styles to dist/`);