mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
25 lines
595 B
TypeScript
25 lines
595 B
TypeScript
import { compile } from '@fumadocs/tailwind/compile';
|
|
import { mkdir, writeFile } from 'node:fs/promises';
|
|
import path from 'node:path';
|
|
|
|
export async function compileInline() {
|
|
await mkdir('css/generated', { recursive: true });
|
|
await writeFile(
|
|
'css/generated/shared.css',
|
|
compile([
|
|
{
|
|
base: path.resolve('src'),
|
|
pattern: '{playground,scalar,ui}/**/*.{ts,tsx}',
|
|
negated: false,
|
|
},
|
|
{
|
|
base: path.resolve('src'),
|
|
pattern: 'server/**/*.tsx',
|
|
negated: false,
|
|
},
|
|
]),
|
|
);
|
|
|
|
console.log('generated CSS files');
|
|
}
|