UNPKG

vite-plugin-public-path

Version:

Vite's equivalent of `__webpack_public_path__` in Webpack. Works for `index.html` and modern/legacy build.

7 lines (6 loc) 310 B
import { ViteConfig, Options } from ".."; /** * For CSS and other some possible assets, which may reference other assets with URLs * replace the root-relative URLs with relative URLs. */ export declare function processAsset(config: ViteConfig, _options: Options, filename: string, content: string): string;