Skip to content

Commit 399c0dc

Browse files
authored
fix: don't use public path when determining as value (#11)
Fixes vuejs/vue-cli#5672
1 parent 407291f commit 399c0dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class PreloadPlugin {
7575
// then we need to set the 'as' attribute correctly.
7676
if (options.rel === 'preload') {
7777
attributes.as = determineAsValue({
78-
href,
78+
href: file,
7979
optionsAs: options.as
8080
})
8181

0 commit comments

Comments
 (0)