表現.md

0.14.0

hyogen.config

dev / build の実行設定を宣言します。Vite 風の defineConfig を使います。

import { defineConfig } from "@b4moss/hyogen-md/config";

export default defineConfig({
  input: "./src/**/*.md",
  // outDir: "./out",
});

探索順

作業ディレクトリから次の順で最初に見つかったファイルを使います。

  1. hyogen.config.ts
  2. hyogen.config.mjs
  3. hyogen.config.js
  4. hyogen.config.cjs

dev / build の --config <file> で明示できます。

オプション

キー必須既定意味
input必須—入口パスまたは glob(文字列 / 配列)
outDir任意./outbuild のみの出力先(dev は書かない)
context任意—テンプレート共通 context
serverContext任意—サーバ専用 context
dataSources任意—YAML / JSON / CSV(dataSources)
root任意—プロジェクトルート
includeUnderscoreEntries任意—_ 始まりをエントリに含めるか
preserveFrontMatter任意—front matter を出力に残すか
preserveHgComments任意—@hg コメントを出力に残すか

設定内のパスは、設定ファイルがあるディレクトリ基準で解決されます。

関連