resolve-webpack-url.d.ts 544 B

1234567891011121314
  1. /**
  2. * Resolves a url in the way that webpack would (with string concatenation)
  3. *
  4. * Use publicPath + filePath instead of url.resolve(publicPath, filePath) see:
  5. * https://webpack.js.org/configuration/output/#output-publicpath
  6. *
  7. * @function resolveWebpackURL
  8. * @param {string} publicPath The publicPath value from webpack's compilation.
  9. * @param {Array<string>} paths File paths to join
  10. * @return {string} Joined file path
  11. *
  12. * @private
  13. */
  14. export declare function resolveWebpackURL(publicPath: string, ...paths: Array<string>): string;