UNPKG

@farmfe/core

Version:

Farm is a extremely fast web build tool written in Rust. Farm can start a project in milliseconds and perform HMR within 10ms, making it much faster than similar tools like webpack and vite.

12 lines (11 loc) 620 B
import { Logger } from '../../utils/logger.js'; import { ResolvedCompilation } from '../types.js'; export declare function normalizeOutput(config: ResolvedCompilation, isProduction: boolean, logger: Logger): void; /** * @param outputConfig publicPath option * @param logger logger instance * @param isPrefixNeeded whether to add a prefix to the publicPath * @returns normalized publicPath */ export declare function normalizePublicPath(targetEnv: string, publicPath: string | undefined, logger: Logger, isPrefixNeeded?: boolean): string; export declare function getValidPublicPath(publicPath?: string): string;