Мелкий рефакторинг

This commit is contained in:
Book Pauk
2020-03-08 18:53:40 +07:00
parent 0118034b4b
commit 4b146c70ad
3 changed files with 7 additions and 10 deletions

View File

@@ -57,11 +57,9 @@ module.exports = merge(baseWpConfig, {
new CopyWebpackPlugin([{from: `${clientDir}/assets/*`, to: `${publicDir}/`, flatten: true}]),
new SWPrecacheWebpackPlugin({
cacheId: 'liberama',
dontCacheBustUrlsMatching: /\.\w{8}\./,
filepath: `${publicDir}/service-worker.js`,
minify: true,
navigateFallback: '/index.html',
staticFileGlobsIgnorePatterns: [/\.map$/, /asset-manifest\.json$/],
stripPrefix: publicDir,
}),
]