'use strict' function indexHtml (opts) { let routePrefix = opts.prefix if (opts.indexPrefix) { routePrefix = `${opts.indexPrefix.replace(/\/$/, '')}/${opts.prefix.replace(/^\//, '')}` } return (url) => { const hasTrailingSlash = /\/$/.test(url) const prefix = hasTrailingSlash ? `.${opts.staticPrefix}` : `${routePrefix}${opts.staticPrefix}` return `