deno.land / x / lume@v2.1.4 / core / utils / lume_config.ts
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475/** A list of the available plugins not installed by default */export const pluginNames = [ "attributes", "base_path", "code_highlight", "date", "decap_cms", "esbuild", "eta", "favicon", "feed", "fff", "filter_pages", "inline", "jsx", "jsx_preact", "katex", "lightningcss", "liquid", "mdx", "metas", "minify_html", "modify_urls", "multilanguage", "nav", "nunjucks", "og_images", "on_demand", "pagefind", "picture", "postcss", "prism", "pug", "reading_info", "redirects", "relations", "relative_urls", "remark", "resolve_urls", "robots", "sass", "sheets", "sitemap", "slugify_urls", "source_maps", "svgo", "tailwindcss", "terser", "transform_images", "toml", "unocss",];
/** Returns the _config file of a site */export async function getConfigFile( path?: string, defaultPaths: string[] = ["_config.js", "_config.ts"],): Promise<string | undefined> { if (path) { try { return await Deno.realPath(path); } catch { throw new Error(`Config file not found (${path})`); } }
for (const path of defaultPaths) { try { return await Deno.realPath(path); } catch { // Ignore } }}
Version Info