From 5777ee64591ef873d5c07315805c47d7f0fd38ff Mon Sep 17 00:00:00 2001 From: Burak Date: Sun, 5 Nov 2017 13:11:33 +0100 Subject: [PATCH] Extend WorkboxJS for Fonts Let Service-Worker cache fonts, too --- webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index a8f2911..107eeb6 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -64,7 +64,7 @@ const plugins = isDev ? [ ] : [ new WorkboxPlugin({ globDirectory: outputPath, - globPatterns: ['**/*.{html,js,css}'], + globPatterns: ['**/*.{html, js, css, svg, png, woff, woff2, ttf}'], swDest: join(outputPath, 'sw.js') }), new CopyWebpackPlugin(