Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
class CleanConfig
import { CleanConfig } from "https://deno.land/x/frugal@0.2.1/packages/core/Config.ts";

A config object, wrapping the actual config with convinence methods.

Constructors

new
CleanConfig(
config: Config,
importMap: importmap.ImportMap,
importMapFile?: string,
watch?: boolean,
)

Properties

readonly
cacheDir

Return the resolved cache directory (a '.cache' directory inside outputDir)

readonly
cachePersistance

Get the cache persistance layer (with automatic fallbakc on Filesystem)

readonly
importMapURL
readonly
loaders
readonly
loggingConfig

Get a logger config object (with automatic fallback on default)

readonly
outputDir

Return the resolved outputDir

readonly
pagePersistance

Get the page persistance layer (with automatic fallbakc on Filesystem)

readonly
pages
readonly
publicDir

Return the resolved public directory (a 'public' directory inside outputDir)

readonly
resolve

Return a resolve method generated from the config import map.

readonly
root

Return the root of the project (either self or root relative to self if root is set)

readonly
self
readonly
watch

Static Methods

load(config: Config, watch?: boolean)

Load the given config