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 })