gabiseabra / google-fonts-webpack-plugin

129 stars 44 forks source link

cache fonts in build #34

Open jacobg opened 5 years ago

jacobg commented 5 years ago

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.

subins2000 commented 4 years ago

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

jacobg commented 2 years ago

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