google-fonts-webpack-plugin
google-fonts-webpack-plugin copied to clipboard
cache fonts in build
Upstream failures can break the build: https://github.com/majodev/google-webfonts-helper/issues/81
Perhaps it would be a good idea to cache the fonts on the build machine, so such an issue doesn't break the build. And even when it's working, it would be more efficient to cache.
I've made a cache feature in this PR : https://github.com/beyonk-adventures/google-fonts-webpack-plugin/pull/3
Also see https://github.com/gabiseabra/google-fonts-webpack-plugin/pull/22#issuecomment-654681729
Thanks @subins2000
The caching doesn't seem to take effect, because on either version 1.5.0 or 1.7.0 there is an upstream failure right now. It should be cached as I use it all the time.
40% building 58/89 modules 31 active /Users/j/workspace/f/console/node_modules/@fortawesome/pro-solid-svg-icons/index.es.js(node:14651) UnhandledPromiseRejectionWarning: Error: Service Unavailable