snowpack
Version:
The ESM-powered frontend build tool. Fast, lightweight, unbundled.
19 lines (18 loc) • 674 B
TypeScript
import { MountEntry, SnowpackConfig } from '../types';
/**
* Map a file path to the hosted URL for a given "mount" entry.
*/
export declare function getUrlForFileMount({ fileLoc, mountKey, mountEntry, config, }: {
fileLoc: string;
mountKey: string;
mountEntry: MountEntry;
config: SnowpackConfig;
}): string;
/**
* Get the final, hosted URL path for a given file on disk.
*/
export declare function getMountEntryForFile(fileLoc: string, config: SnowpackConfig): [string, MountEntry] | null;
/**
* Get the final, hosted URL path for a given file on disk.
*/
export declare function getUrlForFile(fileLoc: string, config: SnowpackConfig): string | null;