cangku/frontend/scripts/verify-public-build.shared.mjs

5 lines
168 B
JavaScript

export function extractEntryAssetPath(html) {
const matched = html.match(/<script[^>]*type=["']module["'][^>]*src=["']([^"']+)["']/i);
return matched?.[1] || '';
}