diff --git a/webpack.config.prod.js b/webpack.config.prod.js index c314b79..04b6c8d 100644 --- a/webpack.config.prod.js +++ b/webpack.config.prod.js @@ -42,10 +42,11 @@ module.exports = { new SWPrecacheWebpackPlugin( { cacheId: 'kana-quiz', filename: 'sw.js', + stripPrefix: '/home/anzz/Code/kanaquiz/', maximumFileSizeToCacheInBytes: 4194304, minify: true, runtimeCaching: [{ - handler: 'cacheFirst', + handler: 'networkFirst', urlPattern: /\.(woff2|svg|ttf|eot|woff|html)$/, }], }) @@ -71,4 +72,4 @@ module.exports = { } ] } -}; \ No newline at end of file +};