Closed Carrzw closed 5 years ago
This plugin can only be used with assets that are part of your local webpack compilation. Given that Google Fonts URLs are not included in your webpack build, I'd recommend using a different technique for preloading them if you need—prehaps look up the URLs ahead of time and then include the appropriate <link rel="preload"...>
HTML in your html-webpack-plugin
's template.
Sorry at first I am not sure if it's proper to have this question here, I already asked this on StackOverflow, but I think maybe I could get more helps here.
So maybe this should not be the issue for this plugin, but more related to the
css-loader
andfile-loader
,It seems this only works for assets bundled by
file-loader
? So I@import
fonts by google CDN, and it's from external source, sofile-loader
won't handle this part and so this plugin cannot work on that either, right? Anyway this is just my guess, any help is appreciated!!!