MCPcopy
hub / github.com/vitejs/vite / toOutputPublicFilePath

Function toOutputPublicFilePath

packages/vite/src/node/plugins/html.ts:446–454  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

444
445 const publicToRelative = (filename: string) => publicBase + filename
446 const toOutputPublicFilePath = (url: string) =>
447 toOutputFilePathInHtml(
448 url.slice(1),
449 'public',
450 relativeUrlPath,
451 'html',
452 config,
453 publicToRelative,
454 )
455 // Determines true start position for the node, either the < character
456 // position, or the newline at the end of the previous line's node.
457 const nodeStartWithLeadingWhitespace = (

Callers 1

handlerFunction · 0.85

Calls 1

toOutputFilePathInHtmlFunction · 0.85

Tested by

no test coverage detected