* Emit a sentinel for a chunk URL that can't be resolved at code-gen time * (chunk hashes aren't computed yet); `resolveChunkUrlSentinels` swaps it * for `${PUBLIC_PATH_AUTO}<chunkFilename>` once they are. * @param {Chunk} chunk chunk * @param {"javascript" | "css"} contentHashType which chu
(chunk, contentHashType)
| 63 | * @returns {string} sentinel |
| 64 | */ |
| 65 | static makeChunkUrlSentinel(chunk, contentHashType) { |
| 66 | const hexId = Buffer.from(String(chunk.id), "utf8").toString("hex"); |
| 67 | return `__WEBPACK_HTML_CHUNK_URL__${hexId}__${contentHashType}__END__`; |
| 68 | } |
| 69 | |
| 70 | /** |
| 71 | * Replace every `makeChunkUrlSentinel` sentinel in `content` with |
no test coverage detected