UNPKG

workbox-webpack-plugin

Version:

A plugin for your Webpack build process, helping you generate a manifest of local files that workbox-sw should precache.

12 lines (11 loc) 421 B
import type { Compilation } from 'webpack'; /** * @param {Object} compilation The webpack compilation. * @param {string} swDest The original swDest value. * * @return {string} If swDest was not absolute, the returns swDest as-is. * Otherwise, returns swDest relative to the compilation's output path. * * @private */ export declare function relativeToOutputPath(compilation: Compilation, swDest: string): string;