|
@@ -58,7 +58,7 @@ module.exports = merge(baseWpConfig, {
|
|
new SWPrecacheWebpackPlugin({
|
|
new SWPrecacheWebpackPlugin({
|
|
cacheId: 'liberama',
|
|
cacheId: 'liberama',
|
|
dontCacheBustUrlsMatching: /\.\w{8}\./,
|
|
dontCacheBustUrlsMatching: /\.\w{8}\./,
|
|
- filename: 'service-worker.js',
|
|
|
|
|
|
+ filepath: `${publicDir}/service-worker.js`,
|
|
minify: true,
|
|
minify: true,
|
|
navigateFallback: '/index.html',
|
|
navigateFallback: '/index.html',
|
|
staticFileGlobsIgnorePatterns: [/\.map$/, /asset-manifest\.json$/],
|
|
staticFileGlobsIgnorePatterns: [/\.map$/, /asset-manifest\.json$/],
|