diff --git a/build/webpack.prod.config.js b/build/webpack.prod.config.js index 9d6ed5f5..c51fb1d1 100644 --- a/build/webpack.prod.config.js +++ b/build/webpack.prod.config.js @@ -58,7 +58,7 @@ module.exports = merge(baseWpConfig, { new SWPrecacheWebpackPlugin({ cacheId: 'liberama', dontCacheBustUrlsMatching: /\.\w{8}\./, - filename: 'service-worker.js', + filepath: `${publicDir}/service-worker.js`, minify: true, navigateFallback: '/index.html', staticFileGlobsIgnorePatterns: [/\.map$/, /asset-manifest\.json$/], diff --git a/client/index.html.template b/client/index.html.template index 61af1f59..15964dc2 100644 --- a/client/index.html.template +++ b/client/index.html.template @@ -9,7 +9,7 @@