MCPcopy
hub / github.com/gregberge/loadable-components / joinURLPath

Function joinURLPath

packages/server/src/util.js:37–43  ·  view source on GitHub ↗
(publicPath, filename)

Source from the content-addressed store, hash-verified

35}
36
37export const joinURLPath = (publicPath, filename) => {
38 if (publicPath.substr(-1) === '/') {
39 return `${publicPath}${filename}`
40 }
41
42 return `${publicPath}/${filename}`
43}
44
45export const readJsonFileSync = (inputFileSystem, jsonFilePath) => {
46 return JSON.parse(inputFileSystem.readFileSync(jsonFilePath))

Callers 2

resolvePublicUrlMethod · 0.90
util.test.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected