relative-to-output-path.d.ts 421 B

1234567891011
  1. import type { Compilation } from 'webpack';
  2. /**
  3. * @param {Object} compilation The webpack compilation.
  4. * @param {string} swDest The original swDest value.
  5. *
  6. * @return {string} If swDest was not absolute, the returns swDest as-is.
  7. * Otherwise, returns swDest relative to the compilation's output path.
  8. *
  9. * @private
  10. */
  11. export declare function relativeToOutputPath(compilation: Compilation, swDest: string): string;