UNPKG

vite-pug-static-builder

Version:

Vite + Pugを使用した静的サイトビルダー - 複数のPugファイルを静的HTMLとしてビルドするViteプラグイン

27 lines 963 B
import type Pug from 'pug'; import type Picomatch from 'picomatch'; /** * プラグイン設定 */ interface Settings { /** ビルド時のPugコンパイルオプション */ readonly buildOptions?: Pug.Options; /** ビルド時のPugローカル変数 */ readonly buildLocals?: Pug.LocalsObject; /** 開発サーバー時のPugコンパイルオプション */ readonly serveOptions?: Pug.Options; /** 開発サーバー時のPugローカル変数 */ readonly serveLocals?: Pug.LocalsObject; /** 無視パターン */ readonly ignorePattern?: Picomatch.Glob; /** リロード設定 */ readonly reload?: boolean; } /** * Vite Pug静的サイトプラグイン * @param userSettings - ユーザー設定 * @returns Viteプラグイン配列 */ declare const vitePluginPugStatic: (userSettings?: Settings) => import("vite").Plugin<any>[]; export default vitePluginPugStatic; //# sourceMappingURL=index.d.ts.map