From 09a465ac888c947fd8119a57f27c54c370694ee4 Mon Sep 17 00:00:00 2001 From: pooya parsa Date: Fri, 8 Feb 2019 00:29:34 +0330 Subject: [PATCH] fix(pwa-utils): ensure joinUrl not modifying scheme part --- packages/pwa-utils/index.js | 2 +- test/fixture/nuxt.config.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/pwa-utils/index.js b/packages/pwa-utils/index.js index 57cb3162..30bc4539 100755 --- a/packages/pwa-utils/index.js +++ b/packages/pwa-utils/index.js @@ -9,7 +9,7 @@ function isUrl (url) { } function joinUrl (...args) { - return path.join(...args) + return path.join(...args).replace(':/', '://') } function getRouteParams (options) { diff --git a/test/fixture/nuxt.config.js b/test/fixture/nuxt.config.js index 670a00e5..b65833a8 100644 --- a/test/fixture/nuxt.config.js +++ b/test/fixture/nuxt.config.js @@ -20,6 +20,10 @@ module.exports = { description: 'Test Project Description' }, + // build: { + // publicPath: 'https://cdn.com/assets/' + // }, + workbox: { offlineAnalytics: true, dev: true,