UNPKG

reacthtmlpack

Version:

Added the missing piece of treating `index.html` as entry point in webpack bundles.

13 lines (9 loc) 278 B
"use strict"; exports.__esModule = true; function extractPath(string) { var match = string.match(/^https?:\/\/[^\/]*/); if (match == null) return string; return string.substring(match[0].length); } exports["default"] = extractPath; module.exports = exports["default"];