UNPKG

@mischback/buster

Version:

buster is a tool to support cache busting for static assets of a website.

20 lines (19 loc) 700 B
import { Config } from "stdio/dist/getopt"; import { BusterError } from "./errors"; export type BusterConfigMode = "copy" | "rename"; export declare const MODE_COPY = "copy"; export declare const MODE_RENAME = "rename"; export interface BusterConfig { commonPathLength: number; extensions: string[]; input: string; hashLength: number; mode: BusterConfigMode; outFile: string; } export declare const cmdLineOptions: Config; export declare class BusterConfigError extends BusterError { constructor(message: string); } export declare function checkConfig(config: BusterConfig): Promise<BusterConfig>; export declare function getConfig(argv: string[]): Promise<BusterConfig>;