From 399c0dc37876489e1160f596611635b4db0b13b7 Mon Sep 17 00:00:00 2001 From: Adrien Foulon <6115458+Tofandel@users.noreply.github.com> Date: Thu, 16 Jul 2020 03:19:14 +0200 Subject: [PATCH] fix: don't use public path when determining `as` value (#11) Fixes https://github.com/vuejs/vue-cli/issues/5672 --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 761e71e..56f859d 100644 --- a/src/index.js +++ b/src/index.js @@ -75,7 +75,7 @@ class PreloadPlugin { // then we need to set the 'as' attribute correctly. if (options.rel === 'preload') { attributes.as = determineAsValue({ - href, + href: file, optionsAs: options.as })